shellrc: group Python & add venv alias(es)

Resolves: #70
This commit is contained in:
Mikaela Suomalainen 2020-05-29 14:12:54 +03:00
parent 507b9b15c7
commit 27b6e51703
No known key found for this signature in database
GPG Key ID: 440D764E4F4A6C2D
2 changed files with 14 additions and 7 deletions

View File

@ -417,9 +417,6 @@ alias osx-show-hidden-files="defaults write com.apple.finder AppleShowAllFiles"
alias osx-airdrop-listenallif="defaults write com.apple.NetworkBrowser BrowseAllInterfaces" alias osx-airdrop-listenallif="defaults write com.apple.NetworkBrowser BrowseAllInterfaces"
alias osx-set-updatecheck="defaults write /Library/Preferences/com.apple.SoftwareUpdate ScheduleFrequency" alias osx-set-updatecheck="defaults write /Library/Preferences/com.apple.SoftwareUpdate ScheduleFrequency"
# Simple HTTPd with Python.
alias python-httpd="python3 -m http.server"
# Resetting different desktop environments # Resetting different desktop environments
# TODO: I imagine these are broken # TODO: I imagine these are broken
#alias reset-gnome="rm -rf ~/.gnome ~/.gnome2 ~/.gconf ~/.gconfd ~/.metacity ~/.cache ~/.dbus ~/.dmrc ~/.mission-control ~/.thumbnails ~/.config/dconf/user ~/.compiz*" #alias reset-gnome="rm -rf ~/.gnome ~/.gnome2 ~/.gconf ~/.gconfd ~/.metacity ~/.cache ~/.dbus ~/.dmrc ~/.mission-control ~/.thumbnails ~/.config/dconf/user ~/.compiz*"
@ -446,12 +443,19 @@ alias ixio="curl -F 'f:1=<-' ix.io"
alias mtrp4="mtr -rw4c 10" alias mtrp4="mtr -rw4c 10"
alias mtrp6="mtr -rw6c 10" alias mtrp6="mtr -rw6c 10"
# Simple HTTPd with Python.
alias python-httpd="python3 -m http.server"
# pip # pip
alias pip="python -m pip" alias pip="python -m pip"
alias pip3="python3 -m pip" alias pip3="python3 -m pip"
alias pypypip="pypy -m pip" alias pypypip="pypy -m pip"
alias pypypip3="pypy3 -m pip" alias pypypip3="pypy3 -m pip"
# Python virtualenv/the new venv comparsion:
# https://virtualenv.pypa.io/en/latest/#virtualenv / python3-venv (Debian)
alias venv="python3 -m venv"
# cp/mv using rsync. rcp appears to be link to scp in my system, so I can # cp/mv using rsync. rcp appears to be link to scp in my system, so I can
# safely use this alias. # safely use this alias.
if hash rsync 2>/dev/null; then if hash rsync 2>/dev/null; then

View File

@ -128,7 +128,6 @@ fi
# Enable core files. # Enable core files.
(ulimit -c unlimited&) (ulimit -c unlimited&)
# More colours # More colours
if [[ $TERM == 'xterm' ]]; then if [[ $TERM == 'xterm' ]]; then
export TERM=xterm-256color export TERM=xterm-256color
@ -395,9 +394,6 @@ alias osx-show-hidden-files="defaults write com.apple.finder AppleShowAllFiles"
alias osx-airdrop-listenallif="defaults write com.apple.NetworkBrowser BrowseAllInterfaces" alias osx-airdrop-listenallif="defaults write com.apple.NetworkBrowser BrowseAllInterfaces"
alias osx-set-updatecheck="defaults write /Library/Preferences/com.apple.SoftwareUpdate ScheduleFrequency" alias osx-set-updatecheck="defaults write /Library/Preferences/com.apple.SoftwareUpdate ScheduleFrequency"
# Simple HTTPd with Python.
alias python-httpd="python3 -m http.server"
# Resetting different desktop environments # Resetting different desktop environments
# TODO: I imagine these are broken # TODO: I imagine these are broken
#alias reset-gnome="rm -rf ~/.gnome ~/.gnome2 ~/.gconf ~/.gconfd ~/.metacity ~/.cache ~/.dbus ~/.dmrc ~/.mission-control ~/.thumbnails ~/.config/dconf/user ~/.compiz*" #alias reset-gnome="rm -rf ~/.gnome ~/.gnome2 ~/.gconf ~/.gconfd ~/.metacity ~/.cache ~/.dbus ~/.dmrc ~/.mission-control ~/.thumbnails ~/.config/dconf/user ~/.compiz*"
@ -424,12 +420,19 @@ alias ixio="curl -F 'f:1=<-' ix.io"
alias mtrp4="mtr -rw4c 10" alias mtrp4="mtr -rw4c 10"
alias mtrp6="mtr -rw6c 10" alias mtrp6="mtr -rw6c 10"
# Simple HTTPd with Python.
alias python-httpd="python3 -m http.server"
# pip # pip
alias pip="python -m pip" alias pip="python -m pip"
alias pip3="python3 -m pip" alias pip3="python3 -m pip"
alias pypypip="pypy -m pip" alias pypypip="pypy -m pip"
alias pypypip3="pypy3 -m pip" alias pypypip3="pypy3 -m pip"
# Python virtualenv/the new venv comparsion:
# https://virtualenv.pypa.io/en/latest/#virtualenv / python3-venv (Debian)
alias venv="python3 -m venv"
# cp/mv using rsync. rcp appears to be link to scp in my system, so I can # cp/mv using rsync. rcp appears to be link to scp in my system, so I can
# safely use this alias. # safely use this alias.
if hash rsync 2>/dev/null; then if hash rsync 2>/dev/null; then