-
-
Save glukicov/92884b4d37830839bf92149e44b5072f to your computer and use it in GitHub Desktop.
.bash_aliases
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
printf "\nSourcing ML PY env: ~/gpu_ml/bin/activate\n" | |
# activate the gpu_ml environment | |
source ~/gpu_ml/bin/activate | |
cd ~/gpu_ml/ | |
# open Jupyter lab on specific port | |
alias jlab="jupyter lab --port=8899" | |
alias lr="ls -ltrh" | |
# usage cd.. 3 to pop 3 dirs up | |
function cd_up() { cd $(printf "%0.s../" $(seq 1 $1 )) ;} | |
alias 'cd..'='cd_up' | |
# usage 'lg "My commit msg"' | |
# new files should be added manually (e.g. git add FILE) | |
function lg() { git add -u ; git commit -a -m "$1" ; git push ;} | |
function st { git status ;} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment