From dfca731f775417c1eb2defc2a33e5ece1916fa28 Mon Sep 17 00:00:00 2001 From: lachtan obecny Date: Tue, 27 Jan 2026 20:07:30 +0100 Subject: [PATCH] fish initialization remake --- fishrc | 14 +++----------- functions.sh | 1 + rc.fish/01-init.fish | 5 +++++ rc/01-init.fish | 0 4 files changed, 9 insertions(+), 11 deletions(-) create mode 100644 rc.fish/01-init.fish delete mode 100644 rc/01-init.fish diff --git a/fishrc b/fishrc index ffaccff..5c7b518 100644 --- a/fishrc +++ b/fishrc @@ -1,11 +1,3 @@ -# ~/.config/fish/config.fish -# echo "source $LWS/fishrc" > $__fish_config_dir/conf.d/lws.fish - -# $__fish_config_dir/conf.d (by default, ~/.config/fish/conf.d/) -# $__fish_sysconf_dir/conf.d (by default, /etc/fish/conf.d/) - -set -gx PAGER less -set -g fish_prompt_pwd_dir_length 0 - -# set -g fish_autosuggestion_enabled 0 -# fish_config theme choose "fish default" +for file in (dirname (status -f))/rc.fish/*.fish + source $file +end diff --git a/functions.sh b/functions.sh index cae8f73..a6bad05 100644 --- a/functions.sh +++ b/functions.sh @@ -1,4 +1,5 @@ # Linux Workspace Functions +# shellcheck shell=bash if [ -z "$time_ms" ]; then readonly time_ms='date +%s%3N' diff --git a/rc.fish/01-init.fish b/rc.fish/01-init.fish new file mode 100644 index 0000000..33431c3 --- /dev/null +++ b/rc.fish/01-init.fish @@ -0,0 +1,5 @@ +set -gx PAGER less +set -g fish_prompt_pwd_dir_length 0 + +# set -g fish_autosuggestion_enabled 0 +# fish_config theme choose "fish default" diff --git a/rc/01-init.fish b/rc/01-init.fish deleted file mode 100644 index e69de29..0000000