Move interactive startup to separate config

This commit is contained in:
RealStickman 2023-04-17 21:50:12 +02:00
parent 3cce0c217e
commit 76f748dac2
2 changed files with 40 additions and 8 deletions

View File

@ -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

View File

@ -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";
};