X-Git-Url: https://git.sev.monster/~sev/dotfiles.git/blobdiff_plain/6d4ce4aad79a55ca78eb0cc6f6795904205c3cc8..20c4ef4e3c48fb859e41a7fa2f286cd970907709:/etc/zsh/.zshrc diff --git a/etc/zsh/.zshrc b/etc/zsh/.zshrc index 716ca79..d1d10dd 100644 --- a/etc/zsh/.zshrc +++ b/etc/zsh/.zshrc @@ -137,7 +137,7 @@ if [[ ! -v _sev_force_zkbd && ( -v terminfo || -v termcap ) ]] { if [[ -n $keymap ]] { source $keymap } else { - echo "Failed to source keymap file $keymap" >&2 + echo -E "Failed to source keymap file $keymap" >&2 } unfunction find_keymap; unset keymap } @@ -251,6 +251,7 @@ unset ps alias gd='git diff' alias gdh='git diff HEAD' alias ga='git add' +alias ga.='git add .' alias gc='git commit' alias gca='git commit --amend' alias gp='git push' @@ -265,8 +266,14 @@ if [[ -v commands[zoxide] ]] { eval "${$(zoxide init zsh):s#_files -/#_cd#}" alias cd=z } +alias cd..=up ## dotfiles -alias dfu='d=${$(echo ~/.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 @@ -339,7 +346,7 @@ case $OSTYPE; in function vol { if [[ -z "$1" ]] { for x in $(mixerctl -a | grep 'outputs\.master'); do - echo $x + echo -E - $x done return }