From 78ecf80d3b6ac8b0486b28c9d6d66bf6a3b04252 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Tue, 24 Jul 2018 01:06:48 -0400 Subject: fish_greeting only if file exists --- fish/.config/fish/fishd.zaphod | 31 ++++++++++++++++++++++++++ fish/.config/fish/functions/fish_greeting.fish | 4 +++- 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 fish/.config/fish/fishd.zaphod (limited to 'fish') diff --git a/fish/.config/fish/fishd.zaphod b/fish/.config/fish/fishd.zaphod new file mode 100644 index 0000000..93eb0b8 --- /dev/null +++ b/fish/.config/fish/fishd.zaphod @@ -0,0 +1,31 @@ +# This file is automatically generated by the fish. +# Do NOT edit it directly, your changes will be overwritten. +SET __fish_init_2_39_8:\x1d +SET __fish_init_2_3_0:\x1d +SET fish_color_autosuggestion:555\x1ebrblack +SET fish_color_cancel:\x2dr +SET fish_color_command:\x2d\x2dbold +SET fish_color_comment:red +SET fish_color_cwd:green +SET fish_color_cwd_root:red +SET fish_color_end:brmagenta +SET fish_color_error:brred +SET fish_color_escape:bryellow\x1e\x2d\x2dbold +SET fish_color_history_current:\x2d\x2dbold +SET fish_color_host:normal +SET fish_color_match:\x2d\x2dbackground\x3dbrblue +SET fish_color_normal:normal +SET fish_color_operator:bryellow +SET fish_color_param:cyan +SET fish_color_quote:yellow +SET fish_color_redirection:brblue +SET fish_color_search_match:bryellow\x1e\x2d\x2dbackground\x3dbrblack +SET fish_color_selection:white\x1e\x2d\x2dbold\x1e\x2d\x2dbackground\x3dbrblack +SET fish_color_user:brgreen +SET fish_color_valid_path:\x2d\x2dunderline +SET fish_greeting:Welcome\x20to\x20fish\x2c\x20the\x20friendly\x20interactive\x20shell +SET fish_key_bindings:fish_default_key_bindings +SET fish_pager_color_completion:\x1d +SET fish_pager_color_description:B3A06D\x1eyellow +SET fish_pager_color_prefix:white\x1e\x2d\x2dbold\x1e\x2d\x2dunderline +SET fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan diff --git a/fish/.config/fish/functions/fish_greeting.fish b/fish/.config/fish/functions/fish_greeting.fish index 61d7778..f41f6a1 100644 --- a/fish/.config/fish/functions/fish_greeting.fish +++ b/fish/.config/fish/functions/fish_greeting.fish @@ -1,3 +1,5 @@ function fish_greeting - cat /var/run/motd + if test -f /var/run/motd + cat /var/run/motd + end end -- cgit 1.4.1