add 'dfs' 'pls' and 'se'

This commit is contained in:
Dict Xiong 2022-05-14 19:50:09 +08:00 committed by GitHub
parent 7c654e599e
commit 53eefc3978
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

13
.zshrc2
View File

@ -61,4 +61,15 @@ antigen apply
# end of antigen config
# functions
dotfile_path=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
dotfile_path=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
dfs()
{
if [[$1 == 'update']]; then
(cd "$dotfile_path" && env git pull)
else
echo "unknown command \"$1\". available: update"
}
# alias
alias "pls"="sudo $(fc -ln -1)"
alias "se"="sudo -sE"