about summary refs log tree commit diff
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2022-01-18T20·05-0800
committerwpcarro <wpcarro@gmail.com>2022-01-23T05·15+0000
commit8a27ed19c3ad97e98df53c8d2c4cd8ef4c3b3448 (patch)
treeec915a8e627e4a05bf76d36fe9c19baff97f8963
parentbfc118b5721c514aabc8fc72799a3f17f531f99f (diff)
feat(wpcarro/fish): Define fish configuration as dotfile r/3664
TODO(wpcarro): Figure out how this is sourced on NixOS machines.

Change-Id: Iafddab003699f57bbfd09cd29cb9382dadf6a147
Reviewed-on: https://cl.tvl.fyi/c/depot/+/4995
Tested-by: BuildkiteCI
Reviewed-by: wpcarro <wpcarro@gmail.com>
-rw-r--r--users/wpcarro/dotfiles/config.fish30
1 files changed, 30 insertions, 0 deletions
diff --git a/users/wpcarro/dotfiles/config.fish b/users/wpcarro/dotfiles/config.fish
new file mode 100644
index 000000000000..34862dca8ed8
--- /dev/null
+++ b/users/wpcarro/dotfiles/config.fish
@@ -0,0 +1,30 @@
+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 gst 'git status'
+alias gsh 'git show HEAD'
+alias gpf 'git push --force-with-lease'
+alias gd 'git diff'
+alias edit 'emacsclient -n'
+# fs navigation
+alias d 'cd /depot'
+
+# environment variables
+set -gx EDITOR "emacsclient"
+set -gx ALTERNATE_EDITOR "emacs -q -nw"
+set -gx VISUAL "emacsclient"
+
+# Use my custom fish prompt
+source ~/.config/fish/prompt.fish
+
+# Configure fuzzy history, file, directory searching
+source (fzf-share)/key-bindings.fish && fzf_key_bindings
+
+# Install direnv
+eval (direnv hook fish)