- commit
- 42e69b6
- parent
- 4936460
- author
- xxwhirlpool
- date
- 2026-03-18 11:28:28 -0400 EDT
cleanup bashrc_pc
1 files changed,
+12,
-33
+12,
-33
1@@ -3,6 +3,10 @@
2 # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
3 # for examples
4
5+######################################
6+# default stuff i'm scared to change
7+######################################
8+
9 # If not running interactively, don't do anything
10 case $- in
11 *i*) ;;
12@@ -10,7 +14,6 @@ case $- in
13 esac
14
15 # don't put duplicate lines or lines starting with space in the history.
16-# See bash(1) for more options
17 HISTCONTROL=ignoreboth
18
19 # append to the history file, don't overwrite it
20@@ -24,10 +27,6 @@ HISTFILESIZE=2000
21 # update the values of LINES and COLUMNS.
22 shopt -s checkwinsize
23
24-# If set, the pattern "**" used in a pathname expansion context will
25-# match all files and zero or more directories and subdirectories.
26-#shopt -s globstar
27-
28 # make less more friendly for non-text input files, see lesspipe(1)
29 [ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
30
31@@ -36,21 +35,14 @@ if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
32 debian_chroot=$(cat /etc/debian_chroot)
33 fi
34
35-# set a fancy prompt (non-color, unless we know we "want" color)
36 case "$TERM" in
37 xterm-color|*-256color) color_prompt=yes;;
38 esac
39
40-# uncomment for a colored prompt, if the terminal has the capability; turned
41-# off by default to not distract the user: the focus in a terminal window
42-# should be on the output of commands, not on the prompt
43 #force_color_prompt=yes
44
45 if [ -n "$force_color_prompt" ]; then
46 if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
47- # We have color support; assume it's compliant with Ecma-48
48- # (ISO/IEC-6429). (Lack of such support is extremely rare, and such
49- # a case would tend to support setf rather than setaf.)
50 color_prompt=yes
51 else
52 color_prompt=
53@@ -77,34 +69,18 @@ esac
54 if [ -x /usr/bin/dircolors ]; then
55 test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
56 alias ls='ls --color=auto'
57- #alias dir='dir --color=auto'
58- #alias vdir='vdir --color=auto'
59
60 alias grep='grep --color=auto'
61 alias fgrep='fgrep --color=auto'
62 alias egrep='egrep --color=auto'
63 fi
64
65-# colored GCC warnings and errors
66-#export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
67-
68-# some more ls aliases
69-alias ll='ls -alF'
70-alias la='ls -A'
71-alias l='ls -CF'
72-
73 # Alias definitions.
74-# You may want to put all your additions into a separate file like
75-# ~/.bash_aliases, instead of adding them here directly.
76-# See /usr/share/doc/bash-doc/examples in the bash-doc package.
77-
78 if [ -f ~/.bash_aliases ]; then
79 . ~/.bash_aliases
80 fi
81
82-# enable programmable completion features (you don't need to enable
83-# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
84-# sources /etc/bash.bashrc).
85+# enable programmable completion features
86 if ! shopt -oq posix; then
87 if [ -f /usr/share/bash-completion/bash_completion ]; then
88 . /usr/share/bash-completion/bash_completion
89@@ -133,7 +109,7 @@ alias freeze="freeze -c user"
90 alias glow="glow -p"
91 alias qrcode="qrencode -t ansiutf8"
92 alias ffmpeg="ffmpeg -hide_banner"
93-alias open="xdg-open &> /dev/null"
94+alias c="clear"
95
96 # weather stuff
97 alias wttr="curl https://wttr.in/nyc?F0ASu"
98@@ -220,9 +196,12 @@ portfree() {
99 # print internal & external IPs
100 whatip() {
101 # internal
102- echo -n "internal IP: " | lolcat -p 0.7; hostname -I | awk '{print $1}'
103+ echo -n "internal IP: " | lolcat -p 0.7
104+ hostname -I | awk '{print $1}'
105+
106 # external
107- echo -n "external IP: " | lolcat -p 0.7; curl -4 icanhazip.com
108+ echo -n "external IP: " | lolcat -p 0.7
109+ curl -4 icanhazip.com
110 }
111
112 # password generator. takes input for password length by number
113@@ -239,7 +218,7 @@ playart() {
114 ARTSHUF=$(find "$ARTDIR" -type f | shuf -n1)
115
116 for art in $ARTSHUF; do
117- arttime --nolearn -a "${art}" --ac 5
118+ arttime --nolearn -a "$art" --ac 5
119 done
120 }
121