From c1cd2e02917be04530ee72ac5dd6286f66fc2b29 Mon Sep 17 00:00:00 2001 From: Adam Date: Thu, 14 Oct 2021 15:29:42 -0600 Subject: [PATCH] feat: add fish --- fish/.config/fish/conf.d/omf.fish | 7 +++++++ fish/.config/fish/config.fish | 21 ++++++++++++++++++++ fish/.config/fish/functions/cal.fish | 3 +++ fish/.config/fish/functions/fish_prompt.fish | 1 + fish/.config/fish/functions/sudo.fish | 3 +++ 5 files changed, 35 insertions(+) create mode 100644 fish/.config/fish/conf.d/omf.fish create mode 100644 fish/.config/fish/config.fish create mode 100644 fish/.config/fish/functions/cal.fish create mode 120000 fish/.config/fish/functions/fish_prompt.fish create mode 100644 fish/.config/fish/functions/sudo.fish diff --git a/fish/.config/fish/conf.d/omf.fish b/fish/.config/fish/conf.d/omf.fish new file mode 100644 index 0000000..3e0f6d6 --- /dev/null +++ b/fish/.config/fish/conf.d/omf.fish @@ -0,0 +1,7 @@ +# Path to Oh My Fish install. +set -q XDG_DATA_HOME + and set -gx OMF_PATH "$XDG_DATA_HOME/omf" + or set -gx OMF_PATH "$HOME/.local/share/omf" + +# Load Oh My Fish configuration. +source $OMF_PATH/init.fish diff --git a/fish/.config/fish/config.fish b/fish/.config/fish/config.fish new file mode 100644 index 0000000..5af70cd --- /dev/null +++ b/fish/.config/fish/config.fish @@ -0,0 +1,21 @@ +set -g theme_color_scheme solarized-dark + +set -g theme_title_display_path no +set -g theme_title_display_user yes + +set -g theme_date_format "+%Y-%m-%d %H:%M:%S - m:%b d:%a w:%V" +set -g theme_display_user yes +set -g theme_display_hostname yes +set -g theme_display_sudo_user yes +set -g theme_show_exit_status yes +set -g theme_display_date yes +set -g theme_display_cmd_duration yes +set -g theme_display_docker_machine yes + +set -g theme_display_git_master_branch yes + +set -g fish_prompt_pwd_dir_length 0 + +set -g TERM xterm-256color + +neofetch diff --git a/fish/.config/fish/functions/cal.fish b/fish/.config/fish/functions/cal.fish new file mode 100644 index 0000000..dc45c0d --- /dev/null +++ b/fish/.config/fish/functions/cal.fish @@ -0,0 +1,3 @@ +function cal --description 'alias cal cal -w --always=color' + command cal -w --color=always $argv; +end diff --git a/fish/.config/fish/functions/fish_prompt.fish b/fish/.config/fish/functions/fish_prompt.fish new file mode 120000 index 0000000..d273d81 --- /dev/null +++ b/fish/.config/fish/functions/fish_prompt.fish @@ -0,0 +1 @@ +/home/adam/.local/share/omf/themes/bobthefish/fish_prompt.fish \ No newline at end of file diff --git a/fish/.config/fish/functions/sudo.fish b/fish/.config/fish/functions/sudo.fish new file mode 100644 index 0000000..d1bac1f --- /dev/null +++ b/fish/.config/fish/functions/sudo.fish @@ -0,0 +1,3 @@ +function lsp + sudo $argv +end