From 6dc2f3d9c86ed5823022a2fbcec48f8610ef89c3 Mon Sep 17 00:00:00 2001 From: Mo8it Date: Thu, 14 Jul 2022 18:48:24 +0200 Subject: [PATCH] Add fish config --- .config/fish/config.fish | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .config/fish/config.fish diff --git a/.config/fish/config.fish b/.config/fish/config.fish new file mode 100644 index 0000000..925a5b4 --- /dev/null +++ b/.config/fish/config.fish @@ -0,0 +1,35 @@ +# Environment variables +set -p PATH "$HOME/.cargo/bin" + +if status is-interactive + # Interactive environment variables + set -x EDITOR /usr/bin/nvim + + # Setup + ## McFly + set -gx MCFLY_KEY_SCHEME vim + set -gx MCFLY_FUZZY 1 + set -gx MCFLY_RESULTS 25 + set -gx MCFLY_INTERFACE_VIEW BOTTOM + set -gx MCFLY_RESULTS_SORT LAST_RUN + set -gx MCFLY_HISTORY_LIMIT 10000 + mcfly init fish | source + + # Disable greeting + set -g fish_greeting + + # Abbreviations + ## Replacements + abbr -a -g rm trash + + ## Safety options + abbr -a -g cp "cp -i" + abbr -a -g mv "mv -i" + abbr -a -g rmi "rm -i" + + # Functions + ## Replacements + function cat -w bat + bat $argv + end +end