diff options
| author | kj-sh604 | 2025-04-21 07:53:31 -0400 |
|---|---|---|
| committer | kj-sh604 | 2025-04-21 07:53:31 -0400 |
| commit | 50eccc1ab5587d2803095e34519e9fb7a7d82af0 (patch) | |
| tree | 3a8849650f41c829c767d7fccb15ca5d473b96dc /.config | |
| parent | 6cb275f6086d6eb94f3e7c83219c3e37adf843d1 (diff) | |
refactor: make 1-liner
Diffstat (limited to '.config')
| -rw-r--r-- | .config/fish/config.fish | 5 |
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 |
