about summary refs log tree commit diff
path: root/users/wpcarro/dotfiles/config.fish
blob: 7a73208a30dcfe509e83184f2f7dd5c27dbe91e8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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 gd 'git diff'
alias gds 'git diff --staged'
alias glp 'git log --pretty --oneline --graph'
alias gpf 'git push --force-with-lease'
alias gsh 'git show HEAD'
alias gst 'git status'
alias edit 'emacsclient -n'
# fs navigation
alias d 'cd /depot'
alias w 'cd /depot/users/wpcarro'
alias sc 'systemctl'

# 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)