tvl-depot/users/wpcarro/dotfiles/config.fish
William Carroll dadfaf1195 feat(wpcarro/fish): Support more aliases
`git` and `terraform` things

Change-Id: Iadbab94b4865591ad6abe282c5409dec01b5a62a
Reviewed-on: https://cl.tvl.fyi/c/depot/+/7303
Reviewed-by: wpcarro <wpcarro@gmail.com>
Autosubmit: wpcarro <wpcarro@gmail.com>
Tested-by: BuildkiteCI
2022-11-17 18:47:09 +00:00

44 lines
1.3 KiB
Fish

alias c 'xclip -selection clipboard -i'
alias p 'xclip -selection clipboard -o'
alias cat 'bat --theme="Monokai Extended Light"'
alias rgh 'rg --hidden'
alias fdh 'fd --hidden'
alias tpr 'tput reset'
alias ls 'exa --sort=type'
alias ll 'exa --long --sort=type'
alias la 'exa --long --all --sort=type'
alias gcan 'git commit --amend --no-edit'
alias gco 'git checkout'
alias gd 'git diff'
alias gds 'git diff --staged'
alias glp 'git log --pretty --oneline --graph'
alias gpf 'git push --force'
alias gsh 'git show HEAD'
alias gst 'git status'
alias gprom 'git pull --rebase origin main'
alias gfom 'git fetch origin main'
alias grh 'git reset --hard'
alias gproc 'git pull --rebase origin canon'
alias edit 'emacsclient -n'
alias h 'cd /hadrian'
alias d 'cd /depot'
alias hw 'cd /hadrian/users/wpcarro'
alias dw 'cd /depot/users/wpcarro'
alias sc 'systemctl'
alias ef 'edit ~/.config/fish/config.fish'
alias sf 'source ~/.config/fish/config.fish'
alias tf 'terraform'
# environment variables
set -gx EDITOR "emacsclient"
set -gx ALTERNATE_EDITOR "emacs -q -nw"
set -gx VISUAL "emacsclient"
# Use my custom fish prompt
source /depot/users/wpcarro/dotfiles/prompt.fish
# Configure fuzzy history, file, directory searching
source (fzf-share)/key-bindings.fish && fzf_key_bindings
# Install direnv
eval (direnv hook fish)