diff --git a/config/fish/conf.d/interactive.fish b/config/fish/conf.d/interactive.fish new file mode 100644 index 0000000..08c7c18 --- /dev/null +++ b/config/fish/conf.d/interactive.fish @@ -0,0 +1,38 @@ +#vi mode for fish +#fish_vi_key_bindings +fish_default_key_bindings + +# change greeting +set fish_greeting "Good Morning! Nice day for fishing ain't it! Hu ha!" + +# Info: +# https://fishshell.com/docs/current/index.html#variables-for-changing-highlighting-colors +set fish_color_normal blue +set fish_color_command blue +set fish_color_quote bryellow +set fish_color_redirection +set fish_color_end brred +set fish_color_error red +set fish_color_param brblue +set fish_color_comment white +set fish_color_selection brcyan +set fish_color_search_match magenta +set fish_color_operator blue +set fish_color_escape green +set fish_color_autosuggestion brwhite +set fish_color_host_remote brwhite +set fish_color_cancel brred + +# used in prompt +set fish_color_user --bold red +set fish_color_separator --bold yellow +set fish_color_host cyan +set fish_color_cwd yellow + +# environment variables +# for ranger +#set RANGER_LOAD_DEFAULT_RC FALSE +# SSH Agent +#set SSH_AUTH_SOCK "$XDG_RUNTIME_DIR/ssh-agent.socket" +set SSH_AUTH_SOCK /run/user/1000/ssh-agent.socket +export SSH_AUTH_SOCK diff --git a/home-manager.nix b/home-manager.nix index 3ef4d3f..a965653 100644 --- a/home-manager.nix +++ b/home-manager.nix @@ -18,10 +18,7 @@ in programs = { fish = { enable = true; - interactiveShellInit = -'' -set fish_greeting "Good Morning! Nice day for fishing ain't it! Hu ha!" -''; + interactiveShellInit = (builtins.readFile .config/fish/conf.d/interactive.fish); shellAliases = { wget = "wget -c"; }; @@ -56,10 +53,7 @@ set fish_greeting "Good Morning! Nice day for fishing ain't it! Hu ha!" programs = { fish = { enable = true; - interactiveShellInit = -'' -set fish_greeting "Good Morning! Nice day for fishing ain't it! Hu ha!" -''; + interactiveShellInit = (builtins.readFile .config/fish/conf.d/interactive.fish); shellAliases = { wget = "wget -c"; };