X-Git-Url: https://git.sev.monster/~sev/dotfiles.git/blobdiff_plain/294ed44e1a8dd7a6026213380c41bceb1a4a162a..390f6e6794cd2b91450cc2731c2e403062e9e650:/etc/zsh/.zshrc?ds=sidebyside diff --git a/etc/zsh/.zshrc b/etc/zsh/.zshrc index 90f4870..55e9c6e 100644 --- a/etc/zsh/.zshrc +++ b/etc/zsh/.zshrc @@ -248,6 +248,7 @@ alias pa=$ps alias spa="sudo $ps" unset ps ## git +alias g=git alias gd='git diff' alias gdh='git diff HEAD' alias ga='git add' @@ -256,6 +257,8 @@ alias gc='git commit' alias gca='git commit --amend' alias gp='git push' alias gu='git pull' +alias gl='git log' +alias gt='git tree' # from gitconfig ## cd/zoxide function up { \cd $(printf '../%.0s' {1..${1:-1}}) @@ -268,7 +271,12 @@ if [[ -v commands[zoxide] ]] { } alias cd..=up ## dotfiles -alias dfu='d=${$(echo -E - ~/.zshenv):P:h:h};GIT_DIR=$d/.git GIT_WORK_TREE=$d git pull' +alias dfu='d=${$(echo -E - ~/.zshenv):P:h:h};GIT_DIR=$d/.git GIT_WORK_TREE=$d { + git pull && + git submodules init && + git submodules sync && + git submodules update +}' ### hooks autoload -Uz add-zsh-hook