add fish config
This commit is contained in:
@@ -6,7 +6,18 @@ function ls --description 'alias ls to eza if possible'
|
||||
end
|
||||
end
|
||||
|
||||
function dotu
|
||||
set -l current_dir (pwd)
|
||||
|
||||
cd $HOME/.flinty
|
||||
if git pull
|
||||
source ~/.config/fish/config.fish
|
||||
echo "Config reloaded successfully!"
|
||||
end
|
||||
|
||||
# 回到原位
|
||||
cd $current_dir
|
||||
end
|
||||
|
||||
abbr -a port 'sudo ss -tulnp | grep'
|
||||
abbr -a process 'ps aux | grep'
|
||||
|
||||
alias dotu='cd $HOME/.flinty && git pull && source ~/.config/fish/config.fish'
|
||||
Reference in New Issue
Block a user