add fish config
This commit is contained in:
@@ -6,7 +6,18 @@ function ls --description 'alias ls to eza if possible'
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
abbr -a port 'sudo ss -tulnp | grep'
|
function dotu
|
||||||
abbr -a process 'ps aux | grep'
|
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
|
||||||
|
|
||||||
alias dotu='cd $HOME/.flinty && git pull && source ~/.config/fish/config.fish'
|
abbr -a port 'sudo ss -tulnp | grep'
|
||||||
|
abbr -a process 'ps aux | grep'
|
||||||
Reference in New Issue
Block a user