Fish: Make all tabs become spaces :P

With a tab stop of 4, of course.
This commit is contained in:
hedy 2022-03-31 17:47:52 +08:00
parent a9f520eacb
commit a046ab6c16
Signed by: hedy
GPG Key ID: B51B5A8D1B176372
5 changed files with 23 additions and 23 deletions

View File

@ -1,8 +1,8 @@
function cat --wraps=ccat --description 'alias cat=ccat'
if command -sq ccat
ccat $argv;
else
set catpath (which cat)
$catpath $argv;
end
if command -sq ccat
ccat $argv;
else
set catpath (which cat)
$catpath $argv;
end
end

View File

@ -91,15 +91,15 @@ function fish_prompt --description 'Write out the prompt'
# PWD
set wd (prompt_pwd)
set_color $color_cwd
if not [ $wd = '~' ]
# Make basename blue just because
if not [ $wd = '~' ]
# Make basename blue just because
echo -n (dirname $wd)'/'
set_color $color_cwd_base
echo -n (basename $wd)
set_color $color_cwd_base
echo -n (basename $wd)
else
echo -n ' ~'
end
set_color normal
set_color normal
printf '%s' (fish_vcs_prompt)

View File

@ -1,7 +1,7 @@
function ll
if command -sq exa
exa -lahg --git -t modified $argv
else
ls -Al $argv
end
if command -sq exa
exa -lahg --git -t modified $argv
else
ls -Al $argv
end
end

View File

@ -1,4 +1,4 @@
function nvm
bass source ~/.nvm/nvm.sh --no-use ';' nvm $argv
bass source "$NVM_DIR"/nvm.sh --no-use ';' nvm $argv
end

View File

@ -1,8 +1,8 @@
function rm --wraps=trash --description 'alias rm=trash'
if command -sq trash
trash $argv;
else
set rmpath (which rm)
$rmpath $argv;
end
if command -sq trash
trash $argv;
else
set rmpath (which rm)
$rmpath $argv;
end
end