mirror of
https://github.com/DictXiong/dotfiles.git
synced 2025-04-24 07:36:53 +08:00
add 'dfs' 'pls' and 'se'
This commit is contained in:
parent
7c654e599e
commit
53eefc3978
13
.zshrc2
13
.zshrc2
|
@ -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"
|
Loading…
Reference in New Issue
Block a user