rm dumb shortcuts and update bash syntax
This commit is contained in:
parent
2e4e4eb80a
commit
71e3c2d9f7
1 changed files with 3 additions and 17 deletions
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/zsh
|
#!/bin/zsh
|
||||||
|
|
||||||
if test -d ~/.oh-my-zsh; then
|
if [[ -d $HOME/.oh-my-zsh ]]; then
|
||||||
ZSH=~/.oh-my-zsh/
|
ZSH=$HOME/.oh-my-zsh/
|
||||||
else
|
else
|
||||||
ZSH=/usr/share/oh-my-zsh
|
ZSH=/usr/share/oh-my-zsh
|
||||||
fi
|
fi
|
||||||
|
@ -20,7 +20,7 @@ VI_MODE_RESET_PROMPT_ON_MODE_CHANGE=true
|
||||||
VI_MODE_SET_CURSOR=true
|
VI_MODE_SET_CURSOR=true
|
||||||
|
|
||||||
# Use neovim for vim if present.
|
# Use neovim for vim if present.
|
||||||
[ -x "$(command -v nvim)" ] && alias vim="nvim" vimdiff="nvim -d"
|
[[ -x "$(command -v nvim)" ]] && alias vim="nvim" vimdiff="nvim -d"
|
||||||
|
|
||||||
# /comfy/
|
# /comfy/
|
||||||
alias \
|
alias \
|
||||||
|
@ -38,20 +38,6 @@ drmi='docker rmi -f $(docker images -aq)' \
|
||||||
drmv='docker volume rm $(docker volume ls -q)' \
|
drmv='docker volume rm $(docker volume ls -q)' \
|
||||||
dicheck='rsync -havn . /dev/shm --exclude-from .dockerignore' \
|
dicheck='rsync -havn . /dev/shm --exclude-from .dockerignore' \
|
||||||
|
|
||||||
# Shortcuts
|
|
||||||
alias \
|
|
||||||
cf="~/.config && v" \
|
|
||||||
cfh="sudo nvim /etc/hosts" \
|
|
||||||
cfk="nvim ~/.config/kitty/kitty.conf" \
|
|
||||||
cfl="nvim ~/.config/lf/lfrc" \
|
|
||||||
cfm="nvim ~/.config/mako/config" \
|
|
||||||
cfp="nvim ~/.zprofile" \
|
|
||||||
cfr="nvim ~/.config/river/init" \
|
|
||||||
cfv="~/.config/nvim && v" \
|
|
||||||
cfw="nvim ~/.config/waybar/config" \
|
|
||||||
cfws="nvim ~/.config/waybar/style.css" \
|
|
||||||
cfz="nvim ~/.config/zsh/.zshrc" \
|
|
||||||
|
|
||||||
# Add verbosity
|
# Add verbosity
|
||||||
alias \
|
alias \
|
||||||
cp="cp -iv" \
|
cp="cp -iv" \
|
||||||
|
|
Loading…
Add table
Reference in a new issue