diff options
| author | Marc Vertes <mvertes@free.fr> | 2025-01-21 18:05:15 +0100 |
|---|---|---|
| committer | Marc Vertes <mvertes@free.fr> | 2025-01-21 18:05:15 +0100 |
| commit | 953e0a3964e6c6f787c7ea70e1ffa26f254e2236 (patch) | |
| tree | 0276251cf2d5c9516bc11c24dee3833d81a49f6e | |
| parent | 2d8346d45090f78ae52831ffe69e26cd74e2b4b6 (diff) | |
fixup
| -rw-r--r-- | .bashrc | 6 | ||||
| -rw-r--r-- | .profile | 17 |
2 files changed, 17 insertions, 6 deletions
@@ -19,6 +19,12 @@ stty -ixon # disable Ctrl-S #export PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND" case $(uname -o) in +(Android) + PATH=~/bin:${HOME%/*}/usr/bin:~/go/bin + export GNUTERM='sixelgd enhanced truecolor font "arial,9"' + alias ls='ls --color=auto -v' + alias ll='ls -AlFhv' + ;; (Darwin) export GNUTERM='sixelgd enhanced truecolor size 1600,1200 font "arial,9"' alias ls='ls -GF' @@ -2,6 +2,7 @@ case $(uname -o) in (Android) + PATH=~/bin:${HOME%/*}/usr/bin:~/go/bin ;; (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 @@ -14,16 +15,20 @@ case $(uname -o) in . "/opt/homebrew/etc/profile.d/bash_completion.sh" tabs -4 export HOMEBREW_NO_ANALYTICS=1 + case $SHELL in + (*/ash) export ENV=~/.shrc ;; + (*/bash) . ~/.bashrc ;; + esac ;; (Linux|GNU/Linux) PATH=~/bin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:~/go/bin export XDG_RUNTIME_DIR=/run/user/$(id -u) - ;; -esac + case $SHELL in + (*/ash) export ENV=~/.shrc ;; + (*/bash) . ~/.bashrc ;; + esac -case $SHELL in -(*/ash) export ENV=~/.shrc ;; -(*/bash) . ~/.bashrc ;; + [ "$(tty)" = /dev/tty1 ] && [ -x /usr/bin/sway ] && exec dbus-run-session -- sway || true + ;; esac -[ "$(tty)" = /dev/tty1 ] && [ -x /usr/bin/sway ] && exec dbus-run-session -- sway || true |
