From d8f8de720dd4383556b7c00eb391354e22ab34ac Mon Sep 17 00:00:00 2001 From: Marc Vertes Date: Thu, 30 Jan 2025 11:13:44 +0100 Subject: fixup --- .bashrc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to '.bashrc') diff --git a/.bashrc b/.bashrc index 6cbccd9..c9e8ca3 100644 --- a/.bashrc +++ b/.bashrc @@ -20,25 +20,25 @@ stty -ixon # disable Ctrl-S OS=${OS:-$(~/bin/os)} +# Support different operating system environments case $OS in (arch|alpine) export GNUTERM='sixelgd enhanced truecolor font "arial,9"' - alias ls='ls --color=auto -v' - alias ll='ls -AlFhv' - [ -f /etc/arch-release ] || trap 'printf "\e]2;${PWD/~/\~} ${BASH_COMMAND%ps1}\a"' DEBUG + alias ls='ls --color=auto -v' ll='ls -AlFhv' + [ "$OS" = arch ] || trap 'printf "\e]2;${PWD/~/\~} ${BASH_COMMAND%ps1}\a"' DEBUG ;; (Darwin) export GNUTERM='sixelgd enhanced truecolor size 1600,1200 font "arial,9"' - alias ls='ls -GF' - alias ll='ls -AlGFhv' - alias ldd='otool -L' + alias ls='ls -GF' ll='ls -AlGFhv' + alias ldd='otool -L' alias ibrew='arch -x86_64 /usr/local/bin/brew' trap 'printf "\e]2;${PWD/~/\~} ${BASH_COMMAND%update_terminal_cwd}\a"' DEBUG ;; (termux) PATH=~/bin:${HOME%/*}/usr/bin:~/go/bin export GNUTERM='sixelgd enhanced truecolor font "arial,9"' - [ -x eza ] && alias ls='eza' ll='eza -lao --no-user --no-permissions' + type eza >/dev/null && alias ls='eza' ll='eza -lao --no-user --no-permissions' || + alias ls='ls --color=auto -v' ll='ls -AlFhv' ;; esac -- cgit v1.2.3