Doors/configs/shell/zsh/.zshrc

63 lines
1.4 KiB
Bash
Raw Normal View History

2023-02-03 04:08:44 -05:00
#!/bin/zsh
if [[ -d $HOME/.oh-my-zsh ]]; then
ZSH=$HOME/.oh-my-zsh/
2023-02-03 04:08:44 -05:00
else
ZSH=/usr/share/oh-my-zsh
fi
ZSH_THEME="pygmalion-virtualenv"
# Uncomment the following line if you want to disable marking untracked files
# under VCS as dirty. This makes repository status check for large repositories
# much, much faster.
DISABLE_UNTRACKED_FILES_DIRTY="true"
plugins=(git vi-mode virtualenv python)
# vi-mode
VI_MODE_RESET_PROMPT_ON_MODE_CHANGE=true
VI_MODE_SET_CURSOR=true
# Use neovim for vim if present.
[[ -x "$(command -v nvim)" ]] && alias vim="nvim" vimdiff="nvim -d"
2023-02-03 04:08:44 -05:00
# /comfy/
alias \
2024-01-09 08:09:02 -05:00
bb="byobu" \
2024-01-22 23:46:02 -05:00
dicheck='rsync -havn . /dev/shm --exclude-from .dockerignore' \
2024-01-09 08:09:02 -05:00
drm='docker rm -vf $(docker ps -aq)' \
drmi='docker rmi -f $(docker images -aq)' \
drmv='docker volume rm $(docker volume ls -q)' \
2024-01-22 23:46:02 -05:00
glow="clear && glow" \
jf="sudo journalctl -f" \
ka="killall" \
push="rsync -avzP" \
t="tree -L" \
v="vim ." \
vd="deactivate" \
vs="source bin/activate" \
x="exit" \
2024-01-09 08:09:02 -05:00
# Add verbosity
2023-02-03 04:08:44 -05:00
alias \
2024-01-09 08:09:02 -05:00
cp="cp -iv" \
2024-01-22 23:46:02 -05:00
mkd="mkdir -pv" \
2024-01-09 08:09:02 -05:00
mv="mv -iv" \
rm="rm -vI" \
2023-02-03 04:08:44 -05:00
2024-01-09 08:09:02 -05:00
# Add color
2023-02-03 04:08:44 -05:00
alias \
2024-01-09 08:09:02 -05:00
ccat="highlight --out-format=ansi" \
2024-01-22 23:46:02 -05:00
diff="diff --color=auto" \
grep="grep --color=auto" \
ls="ls -hN --color=auto --group-directories-first" \
2023-02-03 04:08:44 -05:00
2024-01-09 08:09:02 -05:00
ZSH_CACHE_DIR=$HOME/.cache/oh-my-zsh
2023-02-03 04:08:44 -05:00
if [[ ! -d $ZSH_CACHE_DIR ]]; then
2024-01-09 08:09:02 -05:00
mkdir "$ZSH_CACHE_DIR"
2023-02-03 04:08:44 -05:00
fi
2024-01-09 08:09:02 -05:00
source "$ZSH"/oh-my-zsh.sh