dotfiles/.paodarc

26 lines
493 B
Plaintext
Raw Normal View History

2020-11-18 02:26:59 +00:00
#!/usr/bin/zsh
# Make ZSH behave like vim
bindkey -v
# Aliases
alias yay="yay --aur"
alias ls="exa"
alias ll="exa -albh"
alias cat="bat"
alias vim="nvim"
alias find="fd"
alias grep="rg"
2020-11-24 01:36:18 +00:00
alias open="xdg-open"
2020-11-18 02:26:59 +00:00
# Functions
dotfile() {
if [[ "$1" = "status" ]]; then
git --git-dir="$HOME"/.dotfiles/ --work-tree="$HOME" status -uno;
else
git --git-dir="$HOME"/.dotfiles/ --work-tree="$HOME" "$@";
fi
}
# Re-enable reverse-i-search
bindkey '^R' history-incremental-search-backward