X-Git-Url: https://git.jankratochvil.net/?p=nethome.git;a=blobdiff_plain;f=.bashrc;h=c93f47cfed3b15de033f361a01d00bcdadd54a73;hp=12918b88f6d571ce6b7cb81ed6d6fd60421ccaeb;hb=550c0940053feca606cc3527038f59e230fc5257;hpb=0013bb62a5c86161999320ad867f0ef1371acbb3 diff --git a/.bashrc b/.bashrc index 12918b8..c93f47c 100644 --- a/.bashrc +++ b/.bashrc @@ -198,7 +198,7 @@ if [ -n "$PS1" ];then # set only in interactive sessions export PS1='[bash]${LOGNAME}@MOCK-'"`cat /MOCK`"':${PWD}# ' fi export PS1='\[\017\]'"$PS1" # \017=std charmap - if [ "${SHELL#*/com.termux/}" = "$SHELL" ];then + if [ "${SSH_CLIENT#2a02:2b88:6:3b57::8f }" = "$SSH_CLIENT" ];then # !Termux export PS1='\[\033%G\]'"$PS1" # \033%G=utf-8 fi # Do not: kbd_mode -u # utf-8 @@ -391,6 +391,7 @@ function yumupdate {(ulimit -v unlimited;yum makecache;yum -y --skip-broken upda function gitcommit { git commit -a --allow-empty-message -m '' "$@"; } function gpg {(unset gpg; http_proxy= all_proxy= HTTP_PROXY= ALL_PROXY= gpg "$@"; );} function swap() {( set -ex;local TMPFILE=tmp.$$;[ $# = 2 ] && mv "$1" $TMPFILE && mv "$2" "$1" && mv $TMPFILE "$2" && echo done )} +alias gthumb='rm -rf ~/.cache/thumbnails/fail/;gthumb' ulimit -S -c 0 set +H