# vi:syntax=sh alias egrep='egrep --color=auto' alias tmux="tmux -2" alias v='vim' # I like feedback alias cp='cp -v' alias mv='mv -v' # i like ls alias ls='ls --color -h --group-directories-first' alias ll='ls -lh' alias lsh='ls -lh' alias la='ls -lah' # top alias cpu='top -o cpu' alias mem='top -o rsize' # memory # cd alias ...='cd ../../' alias ....='cd ../../../' alias .....='cd ../../../../' alias ai="sudo apt install" alias as="apt-cache search" alias fdisk="sudo fdisk" #Tmux aliases alias mopen='tmux attach-session -t' alias mnew='tmux new -s' alias xrestart='sudo systemctl restart nginx' alias djrestart='sudo systemctl restart uwsgi' #Git aliases alias gs="git status" alias ga="git add" alias gc="git commit " alias gl="git log" alias findname='find . -name $1' #Django web dev alias manage='./config/djadmin.sh ' alias virt='source venv/bin/activate' alias serve='python -m http.server' alias servenet="python -c 'import BaseHTTPServer as bhs, SimpleHTTPServer as shs; bhs.HTTPServer(('\''192.168.1.10'\'', 8080), shs.SimpleHTTPRequestHandler).serve_forever()'" alias @less="fc -s | less" # list TODO/FIX lines from the current project alias todos="ack -n --nogroup '(TODO|FIX(ME)?):'" # strip spaces in file names alias stripspaces='for f in *\ *; do mv "$f" "${f// /_}"; done'