export PYTHONSTARTUP=${XDG_CONFIG_HOME:-~/.config}/pythonrc
## vim
export VIMINIT='let$MYVIMRC=($XDG_CONFIG_HOME??($HOME."/.config"))."/vim/.vimrc"|execute"source"$MYVIMRC'
-## wayland/gui env
-export XDG_SESSION_TYPE=${XDG_SESSION_TYPE:-wayland}
-export QT_QPA_PLATFORM=${QT_QPA_PLATFORM:-wayland-egl}
-export QT_WAYLAND_DISABLE_WINDOWDECORATION=${QT_WAYLAND_DISABLE_WINDOWDECORATION:--1}
-export SDL_VIDEODRIVER=${SDL_VIDEODRIVER:-wayland}
-export TERMINAL=${TERMINAL:-$(whence -p konsole footclient urxvt xterm)[(f)1]}
### imports
autoload -Uz zmv
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
}
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'
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
function vol {
if [[ -z "$1" ]] {
for x in $(mixerctl -a | grep 'outputs\.master'); do
- echo $x
+ echo -E - $x
done
return
}