From a249bbb288ce537955cde4b1e3541043c763e8d7 Mon Sep 17 00:00:00 2001 From: mutantmonkey Date: Thu, 24 Jul 2025 23:09:50 -0700 Subject: [PATCH] Add fish config --- Makefile | 11 ++++++++ fish/config.fish | 3 +++ fish/fish_variables | 57 ++++++++++++++++++++++++++++++++++++++++ fish/functions/dir.fish | 4 +++ fish/functions/gits.fish | 4 +++ fish/functions/glog.fish | 4 +++ fish/functions/ls.fish | 4 +++ fish/functions/tree.fish | 4 +++ 8 files changed, 91 insertions(+) create mode 100644 fish/config.fish create mode 100644 fish/fish_variables create mode 100644 fish/functions/dir.fish create mode 100644 fish/functions/gits.fish create mode 100644 fish/functions/glog.fish create mode 100644 fish/functions/ls.fish create mode 100644 fish/functions/tree.fish diff --git a/Makefile b/Makefile index 4a24197..7f86e80 100644 --- a/Makefile +++ b/Makefile @@ -20,6 +20,13 @@ config_symlinks = alacritty \ ansible/ansible.cfg \ cower/config \ dunst/dunstrc \ + fish/config.fish \ + fish/fish_variables \ + fish/functions/dir.fish \ + fish/functions/gits.fish \ + fish/functions/glog.fish \ + fish/functions/ls.fish \ + fish/functions/tree.fish \ gtk-2.0/gtkrc \ gtk-3.0/gtk.css \ gtk-3.0/settings.ini \ @@ -72,6 +79,10 @@ ansible: ansible/ansible.cfg dunst: dunst/dunstrc +fish: fish/config.fish fish/fish_variables fish/functions/dir.fish \ + fish/functions/gits.fish fish/functions/glog.fish fish/functions/ls.fish \ + fish/functions/tree.fish + gnupg: gnupg/dirmngr.conf gnupg/gpg.conf gtk-2.0: gtk-2.0/gtkrc diff --git a/fish/config.fish b/fish/config.fish new file mode 100644 index 0000000..d714361 --- /dev/null +++ b/fish/config.fish @@ -0,0 +1,3 @@ +if status is-interactive + # Commands to run in interactive sessions can go here +end diff --git a/fish/fish_variables b/fish/fish_variables new file mode 100644 index 0000000..79e8b1d --- /dev/null +++ b/fish/fish_variables @@ -0,0 +1,57 @@ +# This file contains fish universal variable definitions. +# VERSION: 3.0 +SETUVAR --export EDITOR:nvim +SETUVAR --export --path GOPATH:/home/mutantmonkey/go +SETUVAR --export LESS:\x2dFRSXMK +SETUVAR --export LESSHISTFILE:\x2d +SETUVAR --export PAGER:less +SETUVAR --export PASSAGE_AGE:rage +SETUVAR --export SUDO_EDITOR:nvim +SETUVAR --export TERMINAL:alacritty +SETUVAR --export VISUAL:nvim +SETUVAR --export WORMHOLE_TRANSIT_RELAY:wss\x3a//relay\x2emagic\x2dwormhole\x2eio/v1 +SETUVAR --export XDG_CACHE_HOME:/home/mutantmonkey/\x2ecache +SETUVAR --export XDG_CONFIG_HOME:/home/mutantmonkey/\x2econfig +SETUVAR --export XDG_DATA_HOME:/home/mutantmonkey/\x2elocal/share +SETUVAR __fish_initialized:3800 +SETUVAR fish_color_autosuggestion:brblack +SETUVAR fish_color_cancel:\x2d\x2dreverse +SETUVAR fish_color_command:normal +SETUVAR fish_color_comment:red +SETUVAR fish_color_cwd:green +SETUVAR fish_color_cwd_root:red +SETUVAR fish_color_end:green +SETUVAR fish_color_error:brred +SETUVAR fish_color_escape:brcyan +SETUVAR fish_color_history_current:\x2d\x2dbold +SETUVAR fish_color_host:normal +SETUVAR fish_color_host_remote:yellow +SETUVAR fish_color_keyword:normal +SETUVAR fish_color_match:\x2d\x2dbackground\x3dbrblue +SETUVAR fish_color_normal:normal +SETUVAR fish_color_operator:brcyan +SETUVAR fish_color_option:cyan +SETUVAR fish_color_param:cyan +SETUVAR fish_color_quote:yellow +SETUVAR fish_color_redirection:cyan\x1e\x2d\x2dbold +SETUVAR fish_color_search_match:bryellow\x1e\x2d\x2dbackground\x3dbrblack +SETUVAR fish_color_selection:white\x1e\x2d\x2dbold\x1e\x2d\x2dbackground\x3dbrblack +SETUVAR fish_color_status:red +SETUVAR fish_color_user:brgreen +SETUVAR fish_color_valid_path:\x2d\x2dunderline +SETUVAR fish_greeting:\x1d +SETUVAR fish_key_bindings:fish_default_key_bindings +SETUVAR fish_pager_color_background:\x1d +SETUVAR fish_pager_color_completion:normal +SETUVAR fish_pager_color_description:yellow\x1e\x2d\x2ditalics +SETUVAR fish_pager_color_prefix:normal\x1e\x2d\x2dbold\x1e\x2d\x2dunderline +SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan +SETUVAR fish_pager_color_secondary_background:\x1d +SETUVAR fish_pager_color_secondary_completion:\x1d +SETUVAR fish_pager_color_secondary_description:\x1d +SETUVAR fish_pager_color_secondary_prefix:\x1d +SETUVAR fish_pager_color_selected_background:\x2d\x2dreverse +SETUVAR fish_pager_color_selected_completion:\x1d +SETUVAR fish_pager_color_selected_description:\x1d +SETUVAR fish_pager_color_selected_prefix:\x1d +SETUVAR fish_user_paths:/home/mutantmonkey/bin\x1e/home/mutantmonkey/go/bin diff --git a/fish/functions/dir.fish b/fish/functions/dir.fish new file mode 100644 index 0000000..64fb5c6 --- /dev/null +++ b/fish/functions/dir.fish @@ -0,0 +1,4 @@ +function dir --wraps='eza --group-directories-first -F' --description 'alias dir eza --group-directories-first -F' + eza --group-directories-first -F $argv + +end diff --git a/fish/functions/gits.fish b/fish/functions/gits.fish new file mode 100644 index 0000000..94c9928 --- /dev/null +++ b/fish/functions/gits.fish @@ -0,0 +1,4 @@ +function gits --wraps='git status -sb' --description 'alias gits git status -sb' + git status -sb $argv + +end diff --git a/fish/functions/glog.fish b/fish/functions/glog.fish new file mode 100644 index 0000000..12fc560 --- /dev/null +++ b/fish/functions/glog.fish @@ -0,0 +1,4 @@ +function glog --wraps="git log --graph --pretty=format:'%Cred%h%Creset %an: %s - %Creset %C(yellow)%d%Creset %Cgreen(%cr)%Creset' --abbrev-commit --date=relative" --description "alias glog git log --graph --pretty=format:'%Cred%h%Creset %an: %s - %Creset %C(yellow)%d%Creset %Cgreen(%cr)%Creset' --abbrev-commit --date=relative" + git log --graph --pretty=format:'%Cred%h%Creset %an: %s - %Creset %C(yellow)%d%Creset %Cgreen(%cr)%Creset' --abbrev-commit --date=relative $argv + +end diff --git a/fish/functions/ls.fish b/fish/functions/ls.fish new file mode 100644 index 0000000..9016e94 --- /dev/null +++ b/fish/functions/ls.fish @@ -0,0 +1,4 @@ +function ls --wraps='eza --group-directories-first -F' --description 'alias ls eza --group-directories-first -F' + eza --group-directories-first -F $argv + +end diff --git a/fish/functions/tree.fish b/fish/functions/tree.fish new file mode 100644 index 0000000..489c7fd --- /dev/null +++ b/fish/functions/tree.fish @@ -0,0 +1,4 @@ +function tree --wraps='eza --tree' --description 'alias tree eza --tree' + eza --tree $argv + +end -- 2.51.2