Commit 42e69b6

xxwhirlpool  ·  2026-03-18 11:28:28 -0400 EDT
parent 4936460
cleanup bashrc_pc
1 files changed,  +12, -33
+12, -33
......@@ -3,6 +3,10 @@
33 # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
44 # for examples
55
6+######################################
7+# default stuff i'm scared to change
8+######################################
9+
610 # If not running interactively, don't do anything
711 case $- in
812 *i*) ;;
......@@ -10,7 +14,6 @@ case $- in
1014 esac
1115
1216 # don't put duplicate lines or lines starting with space in the history.
13-# See bash(1) for more options
1417 HISTCONTROL=ignoreboth
1518
1619 # append to the history file, don't overwrite it
......@@ -24,10 +27,6 @@ HISTFILESIZE=2000
2427 # update the values of LINES and COLUMNS.
2528 shopt -s checkwinsize
2629
27-# If set, the pattern "**" used in a pathname expansion context will
28-# match all files and zero or more directories and subdirectories.
29-#shopt -s globstar
30-
3130 # make less more friendly for non-text input files, see lesspipe(1)
3231 [ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
3332
......@@ -36,21 +35,14 @@ if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
3635 debian_chroot=$(cat /etc/debian_chroot)
3736 fi
3837
39-# set a fancy prompt (non-color, unless we know we "want" color)
4038 case "$TERM" in
4139 xterm-color|*-256color) color_prompt=yes;;
4240 esac
4341
44-# uncomment for a colored prompt, if the terminal has the capability; turned
45-# off by default to not distract the user: the focus in a terminal window
46-# should be on the output of commands, not on the prompt
4742 #force_color_prompt=yes
4843
4944 if [ -n "$force_color_prompt" ]; then
5045 if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
51- # We have color support; assume it's compliant with Ecma-48
52- # (ISO/IEC-6429). (Lack of such support is extremely rare, and such
53- # a case would tend to support setf rather than setaf.)
5446 color_prompt=yes
5547 else
5648 color_prompt=
......@@ -77,34 +69,18 @@ esac
7769 if [ -x /usr/bin/dircolors ]; then
7870 test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
7971 alias ls='ls --color=auto'
80- #alias dir='dir --color=auto'
81- #alias vdir='vdir --color=auto'
8272
8373 alias grep='grep --color=auto'
8474 alias fgrep='fgrep --color=auto'
8575 alias egrep='egrep --color=auto'
8676 fi
8777
88-# colored GCC warnings and errors
89-#export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
90-
91-# some more ls aliases
92-alias ll='ls -alF'
93-alias la='ls -A'
94-alias l='ls -CF'
95-
9678 # Alias definitions.
97-# You may want to put all your additions into a separate file like
98-# ~/.bash_aliases, instead of adding them here directly.
99-# See /usr/share/doc/bash-doc/examples in the bash-doc package.
100-
10179 if [ -f ~/.bash_aliases ]; then
10280 . ~/.bash_aliases
10381 fi
10482
105-# enable programmable completion features (you don't need to enable
106-# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
107-# sources /etc/bash.bashrc).
83+# enable programmable completion features
10884 if ! shopt -oq posix; then
10985 if [ -f /usr/share/bash-completion/bash_completion ]; then
11086 . /usr/share/bash-completion/bash_completion
......@@ -133,7 +109,7 @@ alias freeze="freeze -c user"
133109 alias glow="glow -p"
134110 alias qrcode="qrencode -t ansiutf8"
135111 alias ffmpeg="ffmpeg -hide_banner"
136-alias open="xdg-open &> /dev/null"
112+alias c="clear"
137113
138114 # weather stuff
139115 alias wttr="curl https://wttr.in/nyc?F0ASu"
......@@ -220,9 +196,12 @@ portfree() {
220196 # print internal & external IPs
221197 whatip() {
222198 # internal
223- echo -n "internal IP: " | lolcat -p 0.7; hostname -I | awk '{print $1}'
199+ echo -n "internal IP: " | lolcat -p 0.7
200+ hostname -I | awk '{print $1}'
201+
224202 # external
225- echo -n "external IP: " | lolcat -p 0.7; curl -4 icanhazip.com
203+ echo -n "external IP: " | lolcat -p 0.7
204+ curl -4 icanhazip.com
226205 }
227206
228207 # password generator. takes input for password length by number
......@@ -239,7 +218,7 @@ playart() {
239218 ARTSHUF=$(find "$ARTDIR" -type f | shuf -n1)
240219
241220 for art in $ARTSHUF; do
242- arttime --nolearn -a "${art}" --ac 5
221+ arttime --nolearn -a "$art" --ac 5
243222 done
244223 }
245224