From aeaed64671b9dbbf3d8304630afb1e8abf2140a1 Mon Sep 17 00:00:00 2001 From: Eric Renfro Date: Sun, 24 Dec 2023 11:43:10 -0500 Subject: [PATCH] Initial commit --- dot_config/private_fish/completions/.keep | 0 dot_config/private_fish/conf.d/.keep | 0 dot_config/private_fish/config.fish | 18 +++++++++++++ dot_config/private_fish/fish_variables | 31 ++++++++++++++++++++++ dot_config/private_fish/functions/k.fish | 7 +++++ dot_config/private_fish/functions/ls.fish | 7 +++++ dot_config/private_fish/functions/vim.fish | 9 +++++++ 7 files changed, 72 insertions(+) create mode 100644 dot_config/private_fish/completions/.keep create mode 100644 dot_config/private_fish/conf.d/.keep create mode 100644 dot_config/private_fish/config.fish create mode 100644 dot_config/private_fish/fish_variables create mode 100644 dot_config/private_fish/functions/k.fish create mode 100644 dot_config/private_fish/functions/ls.fish create mode 100644 dot_config/private_fish/functions/vim.fish diff --git a/dot_config/private_fish/completions/.keep b/dot_config/private_fish/completions/.keep new file mode 100644 index 0000000..e69de29 diff --git a/dot_config/private_fish/conf.d/.keep b/dot_config/private_fish/conf.d/.keep new file mode 100644 index 0000000..e69de29 diff --git a/dot_config/private_fish/config.fish b/dot_config/private_fish/config.fish new file mode 100644 index 0000000..c953d7d --- /dev/null +++ b/dot_config/private_fish/config.fish @@ -0,0 +1,18 @@ +set -gx KUBE_EDITOR micro +set -gx VISUAL micro +set -gx EDITOR micro +set -gx ANSIBLE_FORCE_COLOR true +set -gx ANSIBLE_HOST_KEY_CHECKING False + +if type -q direnv + direnv hook fish | source +end + +if type -q atuin + atuin init fish | source +end + +if status is-interactive + # Commands to run in interactive sessions can go here + set -g fish_escape_delay_ms 100 +end diff --git a/dot_config/private_fish/fish_variables b/dot_config/private_fish/fish_variables new file mode 100644 index 0000000..1a82b8a --- /dev/null +++ b/dot_config/private_fish/fish_variables @@ -0,0 +1,31 @@ +# This file contains fish universal variable definitions. +# VERSION: 3.0 +SETUVAR __fish_initialized:3400 +SETUVAR fish_color_autosuggestion:555\x1ebrblack +SETUVAR fish_color_cancel:\x2dr +SETUVAR fish_color_command:blue +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_normal:normal +SETUVAR fish_color_operator:brcyan +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_key_bindings:fish_default_key_bindings +SETUVAR fish_pager_color_completion:normal +SETUVAR fish_pager_color_description:B3A06D\x1eyellow\x1e\x2di +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_selected_background:\x2dr diff --git a/dot_config/private_fish/functions/k.fish b/dot_config/private_fish/functions/k.fish new file mode 100644 index 0000000..1ac625d --- /dev/null +++ b/dot_config/private_fish/functions/k.fish @@ -0,0 +1,7 @@ +function k --wraps=kubectl --description 'kubectl shorthand' + if type -q kubecolor + {{ lookPath "kubecolor" }} $argv + else + {{ lookPath "kubectl" }} $argv + end +end diff --git a/dot_config/private_fish/functions/ls.fish b/dot_config/private_fish/functions/ls.fish new file mode 100644 index 0000000..240b6a4 --- /dev/null +++ b/dot_config/private_fish/functions/ls.fish @@ -0,0 +1,7 @@ +function ls --wraps=las --description 'lsd shorthand' + if type -q lsd + {{ lookPath "lsd" }} $argv + else + {{ lookPath "ls" }} $argv + end +end diff --git a/dot_config/private_fish/functions/vim.fish b/dot_config/private_fish/functions/vim.fish new file mode 100644 index 0000000..b060a17 --- /dev/null +++ b/dot_config/private_fish/functions/vim.fish @@ -0,0 +1,9 @@ +function vim --wraps=micro --description 'run micro instead of vim' + if type -q micro + {{ lookPath "micro" }} $argv + else if type -q nvim + {{ lookPath "nvim" }} $argv + else + {{ lookPath "vim" }} $argv + end +end