about summary refs log tree commit diff
path: root/dotfiles/config.fish
diff options
context:
space:
mode:
Diffstat (limited to 'dotfiles/config.fish')
-rw-r--r--dotfiles/config.fish27
1 files changed, 27 insertions, 0 deletions
diff --git a/dotfiles/config.fish b/dotfiles/config.fish
new file mode 100644
index 000000000000..55809a2ab6a0
--- /dev/null
+++ b/dotfiles/config.fish
@@ -0,0 +1,27 @@
+# Configure classic prompt
+set fish_color_user --bold blue
+set fish_color_cwd --bold white
+#set __fish_git_prompt_color green
+set __fish_git_prompt_showcolorhints yes
+set __fish_git_prompt_color_prefix purple
+set __fish_git_prompt_color_suffix purple
+
+# Fish configuration
+set fish_greeting ""
+set PATH $HOME/.local/bin $GOPATH/bin $PATH
+
+# Editor configuration
+set -gx EDITOR "emacsclient"
+set -gx ALTERNATE_EDITOR "emacs -q -nw"
+set -gx VISUAL "emacsclient"
+
+# Miscellaneous
+eval (direnv hook fish)
+
+# Useful command aliases
+alias gpr 'git pull --rebase'
+alias gco 'git checkout'
+alias gf 'git fetch'
+alias gap 'git add -p'
+alias pbcopy 'xclip -selection clipboard'
+alias edit 'emacsclient -n'