diff --git a/.zshrc2 b/.zshrc2 index d014280..5de1c14 100644 --- a/.zshrc2 +++ b/.zshrc2 @@ -61,4 +61,15 @@ antigen apply # end of antigen config # functions -dotfile_path=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) \ No newline at end of file +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" \ No newline at end of file