Commit ce4265f

chasinglightning  ·  2025-07-26 20:10:40 -0400 EDT
parent c1ae38e
bashrc cleanup
2 files changed,  +15, -15
+7, -7
......@@ -25,11 +25,6 @@ cdmess() {
2525 # don't log commands that start with a space
2626 export HISTCONTROL=ignorespace
2727
28-# fuzzy find/search thru (recent) bash history
29-hist() {
30- cat ~/.bash_history | fzf | sh
31-}
32-
3328 # catppuccin colors for fzf
3429 export FZF_DEFAULT_OPTS=" \
3530 --color=spinner:#F2D5CF,hl:#E78284 \
......@@ -55,7 +50,7 @@ alias weatherlg=wttrlg
5550 alias sun="daylight --short --timezone='America/New_York' | lolcat"
5651
5752 # print internal & external IPs
58-function whatip() {
53+whatip() {
5954 # internal
6055 echo -n "internal IP: " | lolcat -p 0.7; hostname -I | awk '{print $1}'
6156 # external
......@@ -63,7 +58,7 @@ function whatip() {
6358 }
6459
6560 # password generator. takes input for password length by number
66-function passgen() {
61+passgen() {
6762 PASSLENGTH=$(gum input --placeholder "type a number")
6863 date +%s | sha256sum | base64 | head -c $PASSLENGTH ; echo
6964 }
......@@ -74,3 +69,8 @@ alias pusheu="git push bytes main && cd /home/kat/Documents/Git/-mine/eunoia-ast
7469 # vpn split tunnel aliases based on a small script @ ~/.local/bin/mvpn
7570 alias mftp="mvpn filezilla"
7671 alias mterm="mvpn kitty"
72+
73+# quickly look up a program on cheat.sh
74+cheat() {
75+ curl cheat.sh/"$1"
76+}
+8, -8
......@@ -54,11 +54,6 @@ cdmess() {
5454 cd "$(mktemp -d -p "${today_tmpdir}" XXXX)"
5555 }
5656
57-# fuzzy find/search thru (recent) bash history
58-hist() {
59- cat ~/.bash_history | fzf | sh
60-}
61-
6257 # get a random free port. this is useful for my
6358 # insane sysadmin website woman adventures
6459 portfree() {
......@@ -72,7 +67,7 @@ portfree() {
7267 }
7368
7469 # from http://dotfiles.org/~pseup/.bashrc
75-function extract() {
70+extract() {
7671 if [ -f $1 ] ; then
7772 case $1 in
7873 *.tar.bz2) tar xjf $1 ;;
......@@ -94,7 +89,7 @@ function extract() {
9489 }
9590
9691 # print internal & external IPs
97-function whatip() {
92+whatip() {
9893 # internal
9994 echo -n "internal IP: " | lolcat -p 0.7; hostname -I | awk '{print $1}'
10095 # external
......@@ -102,7 +97,7 @@ function whatip() {
10297 }
10398
10499 # password generator. takes input for password length by number
105-function passgen() {
100+passgen() {
106101 PASSLENGTH=$(gum input --placeholder "type a number")
107102 date +%s | sha256sum | base64 | head -c $PASSLENGTH ; echo
108103 }
......@@ -114,3 +109,8 @@ alias gmine="cd /home/kat/Documents/Code/Git/-mine"
114109 alias pusheu="git push bytes main && cd /home/kat/Documents/Code/Git/-mine/astro-eunoia/eunoia/src/utils && node git-changelog.js"
115110
116111 alias iconsubfol="find . -mindepth 2 -type f -print -exec mv {} . \;"
112+
113+# quickly look up a program on cheat.sh
114+cheat() {
115+ curl cheat.sh/"$1"
116+}