2020-11-18 02:26:59 +00:00
|
|
|
#!/usr/bin/zsh
|
|
|
|
# Make ZSH behave like vim
|
2021-03-30 18:26:41 +00:00
|
|
|
# :bindkey -v
|
2020-11-18 02:26:59 +00:00
|
|
|
|
|
|
|
# Aliases
|
|
|
|
alias yay="yay --aur"
|
2021-05-14 03:47:11 +00:00
|
|
|
alias paru="paru --aur"
|
2023-12-02 00:02:36 +00:00
|
|
|
alias ls="eza"
|
|
|
|
alias ll="eza -albh"
|
2022-09-03 20:16:21 +00:00
|
|
|
# alias hx="helix"
|
2020-11-18 02:26:59 +00:00
|
|
|
alias cat="bat"
|
|
|
|
alias find="fd"
|
|
|
|
alias grep="rg"
|
2020-11-24 01:36:18 +00:00
|
|
|
alias open="xdg-open"
|
2024-01-07 07:34:09 +00:00
|
|
|
alias zigup="zigup --path-link /home/paoda/.local/bin/zig --install-dir /home/paoda/.local/share/zigup/zig"
|
2023-06-02 00:19:05 +00:00
|
|
|
alias objdump="objdump -M intel --disassembler-color=extended-color --visualize-jumps=extended-color"
|
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
|