- commit
- c1e2ca3
- parent
- 67da6a8
- author
- chasinglightning
- date
- 2025-07-04 21:01:21 -0400 EDT
update bashrc pc snippet & stow script git remote
2 files changed,
+85,
-19
+84,
-18
1@@ -2,41 +2,63 @@
2 #
3 # from my pc
4
5+eval "$(starship init bash)"
6+
7+export PATH=$PATH:/usr/local/go/bin
8+
9+export NVM_DIR="$HOME/.config/nvm"
10+[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
11+[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
12+
13+alias nano=micro
14 alias sudo="sudo TERMINFO=\"$TERMINFO\" "
15 alias pick='pastel pick'
16 alias fd='fdfind'
17-
18-if [ -f ~/.privatevars ]; then
19- . ~/.privatevars
20-fi
21-
22+alias neofetch="hyfetch"
23+alias fastfetch="hyfetch"
24 alias gitall="git remote | xargs -L1 git push --all"
25+
26+# lazy ass way for me to get my idol mp3s from youtube
27+# usage: ytmp3 url
28+alias ytmp3="yt-dlp -f ba -x --audio-format mp3"
29+
30+# weather stuff
31+alias wttr="curl https://wttr.in/New+York?F0AS"
32+alias weather=wttr
33+
34+alias wttrlg="curl https://wttr.in/New+York?F1uq"
35+alias weatherlg=wttrlg
36+
37+alias sun="daylight --short --timezone='America/New_York' | lolcat"
38+
39+# vpn split tunnel aliases based on a small script @ ~/.local/bin/mvpn
40+alias mftp="mvpn filezilla"
41+alias mterm="mvpn kitty"
42+
43+export EDITOR=/usr/bin/micro
44+export "MICRO_TRUECOLOR=1"
45+
46+# catppuccin colors for fzf
47+export FZF_DEFAULT_OPTS=" \
48+--color=spinner:#F2D5CF,hl:#E78284 \
49+--color=fg:#C6D0F5,header:#E78284,info:#CA9EE6,pointer:#F2D5CF \
50+--color=marker:#BABBF1,fg+:#C6D0F5,prompt:#CA9EE6,hl+:#E78284 \
51+--color=border:#414559,label:#C6D0F5"
52
53 cdmess() {
54 # from this blog post:
55- #
56 # https://blog.larah.me/mess-directory/
57 #
58 today_tmpdir="${TMPDIR-/tmp}/${USER}_mess/$(date +%F)"
59 mkdir -p "$today_tmpdir"
60 cd "$(mktemp -d -p "${today_tmpdir}" XXXX)"
61 }
62-
63-# don't log commands that start with a space
64-export HISTCONTROL=ignorespace
65-
66+
67 # fuzzy find/search thru (recent) bash history
68 hist() {
69 cat ~/.bash_history | fzf | sh
70 }
71-
72-# catppuccin colors for fzf
73-export FZF_DEFAULT_OPTS=" \
74---color=spinner:#F2D5CF,hl:#E78284 \
75---color=fg:#C6D0F5,header:#E78284,info:#CA9EE6,pointer:#F2D5CF \
76---color=marker:#BABBF1,fg+:#C6D0F5,prompt:#CA9EE6,hl+:#E78284 \
77---color=border:#414559,label:#C6D0F5"
78-
79+
80 # get a random free port. this is useful for my
81 # insane sysadmin website woman adventures
82 portfree() {
83@@ -48,3 +70,47 @@ portfree() {
84 done
85 echo "$port"
86 }
87+
88+# from http://dotfiles.org/~pseup/.bashrc
89+function extract() {
90+ if [ -f $1 ] ; then
91+ case $1 in
92+ *.tar.bz2) tar xjf $1 ;;
93+ *.tar.gz) tar xzf $1 ;;
94+ *.bz2) bunzip2 $1 ;;
95+ *.rar) rar x $1 ;;
96+ *.gz) gunzip $1 ;;
97+ *.tar) tar xf $1 ;;
98+ *.tbz2) tar xjf $1 ;;
99+ *.tgz) tar xzf $1 ;;
100+ *.zip) unzip $1 ;;
101+ *.Z) uncompress $1 ;;
102+ *.7z) 7z x $1 ;;
103+ *) echo "'$1' cannot be extracted via extract()" ;;
104+ esac
105+ else
106+ echo "'$1' is not a valid file"
107+ fi
108+}
109+
110+# print internal & external IPs
111+function whatip() {
112+ # internal
113+ echo -n "internal IP: " | lolcat -p 0.7; hostname -I | awk '{print $1}'
114+ # external
115+ echo -n "external IP: " | lolcat -p 0.7; curl -4 icanhazip.com
116+}
117+
118+# password generator. takes input for password length by number
119+function passgen() {
120+ PASSLENGTH=$(gum input --placeholder "type a number")
121+ date +%s | sha256sum | base64 | head -c $PASSLENGTH ; echo
122+}
123+
124+# cd bookmarks
125+alias dotf="cd /home/kat/Documents/Code/Git/-mine/dotfiles"
126+alias gmine="cd /home/kat/Documents/Code/Git/-mine"
127+
128+alias pusheu="git push bytes main && cd /home/kat/Documents/Code/Git/-mine/astro-eunoia/eunoia/src/utils && node git-changelog.js"
129+
130+alias iconsubfol="find . -mindepth 2 -type f -print -exec mv {} . \;"
M
stow.sh
+1,
-1
1@@ -2,7 +2,7 @@
2
3 echo "pulling from git..." | gum style --foreground "#f4b8e4" --border none
4
5-git pull srht main
6+git pull bytes main
7
8 echo "git pull complete!" | gum style --foreground "#f4b8e4" --border none
9