deprecated pp, ppp now uses bpython with python3 as fallback

This commit is contained in:
Martin 2018-01-11 13:37:01 +01:00
parent aef87b74b1
commit 38b24661d6

View file

@ -6,8 +6,6 @@ alias ll="l --almost-all"
alias grep="grep --text --color=auto" alias grep="grep --text --color=auto"
alias pull_website="wget --no-parent --recursive --page-requisites --convert-links --html-extension --no-clobber" alias pull_website="wget --no-parent --recursive --page-requisites --convert-links --html-extension --no-clobber"
alias ..="cd .." alias ..="cd .."
alias pp=python2
alias ppp=python3
alias htop="htop --delay=3" alias htop="htop --delay=3"
alias O=xdg-open alias O=xdg-open
alias gits="git status" alias gits="git status"
@ -24,6 +22,17 @@ alias units="units -v"
alias usystemctl="systemctl --user" alias usystemctl="systemctl --user"
alias battery="upower -i /org/freedesktop/UPower/devices/battery_BAT0" alias battery="upower -i /org/freedesktop/UPower/devices/battery_BAT0"
ppp () {
which bpython > /dev/null
if [ $? == 0 ]; then
bpython "$@"
else
python3 "$@"
fi
}
alias pp=ppp
# apparently this is the only way of setting GNU Screen to UTF-8 # apparently this is the only way of setting GNU Screen to UTF-8
alias screen="screen -U" alias screen="screen -U"