diff options
| author | Marc Vertes <mvertes@free.fr> | 2025-01-28 16:04:15 +0100 |
|---|---|---|
| committer | Marc Vertes <mvertes@free.fr> | 2025-01-28 16:04:15 +0100 |
| commit | 6e1d27a7138b196aaee83742352287bbf720f442 (patch) | |
| tree | f4a15d2589593f3198e8b50b8b64a331465ae360 /.profile | |
| parent | d28de23c5c9aa1088e97f1555cb4ddf039ac2733 (diff) | |
bash: handle missign commands
Diffstat (limited to '.profile')
| -rw-r--r-- | .profile | 16 |
1 files changed, 9 insertions, 7 deletions
@@ -1,8 +1,11 @@ # ~/.profile -case $(uname -o) in -(Android) - PATH=~/bin:${HOME%/*}/usr/bin:~/go/bin +export OS=$(~/bin/os) + +case $OS in +(arch|alpine) + PATH=~/bin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:~/go/bin + export XDG_RUNTIME_DIR=/run/user/$(id -u) ;; (Darwin) PATH=~/bin:~/mu/bin:/opt/homebrew/bin:/opt/homebrew/opt/ruby/bin:/opt/homebrew/opt/tcl-tk/bin:$PATH:~/go/bin:~/.cargo/bin:~/.pyenv/versions/2.7.18/bin:~/.local/bin @@ -12,13 +15,12 @@ case $(uname -o) in eval "$(ssh-agent -s)" ssh-add fi - . "/opt/homebrew/etc/profile.d/bash_completion.sh" + . /opt/homebrew/etc/profile.d/bash_completion.sh tabs -4 export HOMEBREW_NO_ANALYTICS=1 ;; -(Linux|GNU/Linux) - PATH=~/bin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:~/go/bin - export XDG_RUNTIME_DIR=/run/user/$(id -u) +(termux) + PATH=~/bin:${HOME%/*}/usr/bin:~/go/bin ;; esac |
