diff dot_config/private_fish/config.fish @ 1038:6ab26ddbf78d

feat: add fish shell
author Zeger Van de Vannet <zeger@vandevan.net>
date Fri, 26 Apr 2024 18:43:22 +0200
parents
children 979735a38885
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dot_config/private_fish/config.fish	Fri Apr 26 18:43:22 2024 +0200
@@ -0,0 +1,26 @@
+set -x EDITOR hx
+set -x HGEDITOR hx
+
+set -x RIPGREP_CONFIG_PATH $HOME/.config/ripgrep/ripgreprc
+set -x BAT_CONFIG_PATH $HOME/.config/bat/config
+
+set -x PS_FORMAT 'pid,pgid,state,start_time,%cpu,command'
+
+set -x PATH $HOME/.local/bin $HOME/bin $PATH
+
+if test -e "$HOME/bin/mise"
+    $HOME/bin/mise activate fish | source
+end
+
+direnv hook fish | source
+
+if status is-interactive
+    # Commands to run in interactive sessions can go here
+
+    # Select modified paths via fzf on alt+g
+    bind \eg fzf_hg_status_files
+    # Select output lines from last command
+    bind \er fzf_last_command_output
+
+    abbr hgst hg status
+end