diff options
| author | Marc Vertes <mvertes@free.fr> | 2025-01-29 12:04:51 +0100 |
|---|---|---|
| committer | Marc Vertes <mvertes@free.fr> | 2025-01-29 12:04:51 +0100 |
| commit | 6bfc37b756ec5e6671c646b5313ad0b092dd8d71 (patch) | |
| tree | c4187e5e86747ac4940a128266a386702c144e5e | |
| parent | 64063207b5f418bb87b86f1a47f423e4036e8561 (diff) | |
fixup
| -rw-r--r-- | .bashrc | 4 | ||||
| -rw-r--r-- | .profile | 2 | ||||
| -rwxr-xr-x | bin/os | 2 |
3 files changed, 5 insertions, 3 deletions
@@ -1,7 +1,7 @@ # ~/.bashrc # If not running interactively, don't do anything -# [[ $- != *i* ]] && return +[[ $- != *i* ]] && return export PAGER=less export EDITOR=vim @@ -18,6 +18,8 @@ stty -ixon # disable Ctrl-S # Save and reload the history after each command finishes #export PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND" +OS=${OS:-$(~/bin/os)} + case $OS in (arch|alpine) export GNUTERM='sixelgd enhanced truecolor font "arial,9"' @@ -26,7 +26,7 @@ esac case $SHELL in (*/ash) export ENV=~/.shrc ;; -(*/bash) type -t p 2>/dev/null || . ~/.bashrc ;; +(*/bash) type -t p >/dev/null || . ~/.bashrc ;; esac [ "$(tty)" = /dev/tty1 ] && [ -x /usr/bin/sway ] && exec dbus-run-session -- sway || true @@ -2,6 +2,6 @@ # Print operating system name -[ -f /etc/os-release ] && . /etc/os-release && exec echo "$ID" +[ -e /etc/os-release ] && . /etc/os-release && exec echo "$ID" [ -d /data/data/com.termux ] && exec echo termux exec uname |
