aboutsummaryrefslogtreecommitdiff
path: root/.config/fish
diff options
context:
space:
mode:
authorkj-sh6042025-04-21 07:53:31 -0400
committerkj-sh6042025-04-21 07:53:31 -0400
commit50eccc1ab5587d2803095e34519e9fb7a7d82af0 (patch)
tree3a8849650f41c829c767d7fccb15ca5d473b96dc /.config/fish
parent6cb275f6086d6eb94f3e7c83219c3e37adf843d1 (diff)
refactor: make 1-liner
Diffstat (limited to '.config/fish')
-rw-r--r--.config/fish/config.fish5
1 files changed, 1 insertions, 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