From ca8adc914aade0376e779db119be90dfee4965d6 Mon Sep 17 00:00:00 2001 From: tomit4 Date: Fri, 26 Nov 2021 09:03:12 -0800 Subject: [PATCH] created new bash alias with custom bash env, updated linux notes reflecting how this was done --- bashrc.txt | 1 + linux_notes.txt | 3 +++ 2 files changed, 4 insertions(+) diff --git a/bashrc.txt b/bashrc.txt index dae2f394..606a5d85 100644 --- a/bashrc.txt +++ b/bashrc.txt @@ -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" diff --git a/linux_notes.txt b/linux_notes.txt index 6386da70..f85cddcd 100644 --- a/linux_notes.txt +++ b/linux_notes.txt @@ -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}'