2022-01-18 21:05:24 +01:00
|
|
|
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'
|
2022-08-01 19:36:06 +02:00
|
|
|
alias gcan 'git commit --amend --no-edit'
|
2022-01-18 21:05:24 +01:00
|
|
|
alias gd 'git diff'
|
2022-08-01 19:36:06 +02:00
|
|
|
alias gds 'git diff --staged'
|
2022-01-18 21:19:52 +01:00
|
|
|
alias glp 'git log --pretty --oneline --graph'
|
|
|
|
alias gpf 'git push --force-with-lease'
|
|
|
|
alias gsh 'git show HEAD'
|
|
|
|
alias gst 'git status'
|
2022-01-18 21:05:24 +01:00
|
|
|
alias edit 'emacsclient -n'
|
|
|
|
# fs navigation
|
|
|
|
alias d 'cd /depot'
|
2022-01-25 20:48:03 +01:00
|
|
|
alias w 'cd /depot/users/wpcarro'
|
2022-08-01 23:19:05 +02:00
|
|
|
alias sc 'systemctl'
|
2022-01-18 21:05:24 +01:00
|
|
|
|
|
|
|
# environment variables
|
|
|
|
set -gx EDITOR "emacsclient"
|
|
|
|
set -gx ALTERNATE_EDITOR "emacs -q -nw"
|
|
|
|
set -gx VISUAL "emacsclient"
|
|
|
|
|
|
|
|
# Use my custom fish prompt
|
2022-02-08 06:19:50 +01:00
|
|
|
source /depot/users/wpcarro/dotfiles/prompt.fish
|
2022-01-18 21:05:24 +01:00
|
|
|
|
|
|
|
# Configure fuzzy history, file, directory searching
|
|
|
|
source (fzf-share)/key-bindings.fish && fzf_key_bindings
|
|
|
|
|
|
|
|
# Install direnv
|
|
|
|
eval (direnv hook fish)
|