created new bash alias with custom bash env, updated linux notes reflecting how this was done

This commit is contained in:
tomit4 2021-11-26 09:03:12 -08:00
parent 92cfc5a8c9
commit ca8adc914a
2 changed files with 4 additions and 0 deletions

View file

@ -188,6 +188,7 @@ alias serve="live-server"
alias tree="tree -ad -L 3 --prune -C"
alias {nv,nvi}="nvim"
alias {mymux,memux,mmux}="tmux new-session \; send-keys 'nvim' C-m\; split-window -v -p 5\; send-keys 'clear' C-m\; select-pane -t 0\;"
alias cproj="cd '$CPROJ' && mmux"
alias {mi,mic}="micro"
alias {mysql,maria,mdb}="mariadb"
alias {ss,wi,ssid}="doas iw wlan0 scan | grep SSID"

View file

@ -406,6 +406,9 @@ sudo pacman -Qo /path/to/file
Other commands of note:
Create your own environment variables in bash:
export VAR=value (you can set custom paths to be navigated in bashrc, alias cvar="cd '$VAR'")
See the day you installed Linux (ie Birthday)
stat / | awk 'Birth: /{print $2}'