Commit d6f5765
xxwhirlpool
·
2026-03-04 17:13:54 -0500 EST
parent c340b69
shellcheck bashrc_pc
1 files changed,
+9,
-14
+9,
-14
| ... | ... | @@ -1,3 +1,4 @@ | |
| 1 | + | #!/bin/bash | |
| 1 | 2 | # ~/.bashrc: executed by bash(1) for non-login shells. | |
| 2 | 3 | # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
| 3 | 4 | # for examples |
| ... | ... | @@ -122,7 +123,6 @@ fi | |
| 122 | 123 | ||
| 123 | 124 | # general | |
| 124 | 125 | alias nano=micro | |
| 125 | - | alias sudo="sudo TERMINFO=\"$TERMINFO\" " | |
| 126 | 126 | alias fd="fdfind" | |
| 127 | 127 | alias neofetch="hyfetch" | |
| 128 | 128 | alias fastfetch="hyfetch" |
| ... | ... | @@ -133,10 +133,9 @@ alias rced="micro ~/.bashrc && source ~/.bashrc" | |
| 133 | 133 | alias icat="kitty +kitten icat" | |
| 134 | 134 | alias ps="ps auxww" | |
| 135 | 135 | alias dd="ask dd" | |
| 136 | - | alias copy="xclip -sel clipboard" | |
| 137 | - | alias freeze="freeze -c user $1" | |
| 138 | - | alias glow="glow -p $1" | |
| 139 | - | alias qrcode="qrencode -t ansiutf8 $1" | |
| 136 | + | alias freeze="freeze -c user" | |
| 137 | + | alias glow="glow -p" | |
| 138 | + | alias qrcode="qrencode -t ansiutf8" | |
| 140 | 139 | alias ffmpeg="ffmpeg -hide_banner" | |
| 141 | 140 | alias open="xdg-open &> /dev/null" | |
| 142 | 141 |
| ... | ... | @@ -193,10 +192,6 @@ export FZF_DEFAULT_OPTS=" \ | |
| 193 | 192 | export PATH="$PATH:/home/kat/dotfiles/config/.local/bin" | |
| 194 | 193 | export PATH=$PATH:/usr/local/go/bin | |
| 195 | 194 | ||
| 196 | - | if [ -f ~/.privatevars ]; then | |
| 197 | - | . ~/.privatevars | |
| 198 | - | fi | |
| 199 | - | ||
| 200 | 195 | export NVM_DIR="$HOME/.config/nvm" | |
| 201 | 196 | [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm | |
| 202 | 197 | [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion |
| ... | ... | @@ -214,7 +209,7 @@ cdmess() { | |
| 214 | 209 | # https://blog.larah.me/mess-directory/ | |
| 215 | 210 | today_tmpdir="${TMPDIR-/tmp}/${USER}_mess/$(date +%F)" | |
| 216 | 211 | mkdir -p "$today_tmpdir" | |
| 217 | - | cd "$(mktemp -d -p "${today_tmpdir}" XXXX)" | |
| 212 | + | cd "$(mktemp -d -p "${today_tmpdir}" XXXX)" || exit 1 | |
| 218 | 213 | } | |
| 219 | 214 | ||
| 220 | 215 | # get a random free port. this is useful for my |
| ... | ... | @@ -240,7 +235,7 @@ whatip() { | |
| 240 | 235 | # password generator. takes input for password length by number | |
| 241 | 236 | passgen() { | |
| 242 | 237 | PASSLENGTH=$(gum input --placeholder "type a number") | |
| 243 | - | date +%s | sha256sum | base64 | head -c $PASSLENGTH ; echo | |
| 238 | + | date +%s | sha256sum | base64 | head -c "$PASSLENGTH"; echo | |
| 244 | 239 | } | |
| 245 | 240 | ||
| 246 | 241 | # display random ASCII art from |
| ... | ... | @@ -250,8 +245,8 @@ playart() { | |
| 250 | 245 | ARTDIR="/home/kat/Documents/Code/Git/-mine/dotfiles/config/.local/share/arttime/textart" | |
| 251 | 246 | ARTSHUF=$(find "$ARTDIR" -type f | shuf -n1) | |
| 252 | 247 | ||
| 253 | - | for art in "$ARTSHUF"; do | |
| 254 | - | arttime --nolearn -a ${art} --ac 5 | |
| 248 | + | for art in $ARTSHUF; do | |
| 249 | + | arttime --nolearn -a "${art}" --ac 5 | |
| 255 | 250 | done | |
| 256 | 251 | } | |
| 257 | 252 |