Initial commit
This commit is contained in:
commit
29daecb0ce
23 changed files with 3745 additions and 0 deletions
10
fish/functions/cd.fish
Normal file
10
fish/functions/cd.fish
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
# Modified cd that also displays the directory's contents if the listing is less than 5 lines long
|
||||
function cd
|
||||
if test -n "$argv"
|
||||
if test -e $argv -a ! -d (realpath $argv)
|
||||
set argv (dirname $argv)
|
||||
end
|
||||
end
|
||||
builtin cd $argv
|
||||
and test (ls -C -w $COLUMNS |wc -l) -le 5; and ls
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue