# Aliases alias ls="ls --block-size=M" alias lsd="ls -d --block-size=M */" alias lines-of-code="cloc --no3 --by-file-by-lang" alias list-biggest-dirs="du -a . | sort -n -r | head -n 50" alias list-biggest-files="find -type f -exec du -Sh {} + | sort -rh | head -n 50" alias fman="compgen -c | fzf | xargs man" # Docker alias docker="podman" # Archiving alias ltar="tar -ztvf" alias untar="tar -zxvf" alias atar="tar -cvzf" # NPM alias npm-list-global='npm list -g --depth 0' alias npm-update-npm='npm install -g npm' alias npm-list-local='npm list --depth 0' # Common used command alias wget='wget -c' alias cls='clear' alias less="less -S +G" alias ls="ls -F -h -s --group-directories-first --color=always" alias lt='ls --human-readable --size -1 -S --classify' alias count='find . -type f | wc -l' alias refresh-bash='. ~/.bashrc' alias du="du -h -d 1" alias grep="grep -n -R" #gdb no copyright start and use better gui look alias gdb='gdb -tui -q' #Git alias gitA="git add -A ." alias gitC="git commit -m" alias gitP="git push" # Python alias pySimpleServer='python -m http.server' # Python 3 #alias pySimpleServer='python -m SimpleHTTPServer' # Python 2 alias pyCgiServer='python -m CGIHTTPServer' alias py-venv='python3 -m venv' alias py-src-activate='source ./bin/activate' alias py-freeze='pip freeze --local > requirements.txt' alias py-upgrade-all='python -m pip list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip install -U' #alias py-trace='python -m trace --ignore-dir=../lib --trace' #alias py-trace="python -m trace --ignore-dir=$(python -c 'import sys ; print(\":\".join(sys.path)[1:])') --trace"