From 50eccc1ab5587d2803095e34519e9fb7a7d82af0 Mon Sep 17 00:00:00 2001 From: kj-sh604 Date: Mon, 21 Apr 2025 07:53:31 -0400 Subject: refactor: make 1-liner --- .config/fish/config.fish | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.config/fish/config.fish b/.config/fish/config.fish index e649111..0ce9dbe 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish @@ -1,8 +1,5 @@ if status is-login - exec bash -c "test -e /etc/profile && source /etc/profile;\ - test -e ~/.zprofile && source ~/.zprofile;\ - test -e ~/.profile && source ~/.profile;\ - exec fish" + exec bash -c 'for f in /etc/profile ~/.zprofile ~/.profile; do [ -e "$f" ] && source "$f"; done; exec fish' end if status is-interactive -- cgit v1.2.3