aboutsummaryrefslogtreecommitdiff
path: root/.bashrc
diff options
context:
space:
mode:
authorAlec Goncharow <alec@goncharow.dev>2022-12-04 18:23:46 -0600
committerAlec Goncharow <alec@goncharow.dev>2022-12-04 18:23:46 -0600
commit1ec73cc2c14d2f62c32046d9585c3a745531d37a (patch)
tree8b9c6b2e5ba43ce1248c114758a55df9467cab64 /.bashrc
parentb257edf16c9b8b14ebb542e857a29c74fea00495 (diff)
Fresh start
Diffstat (limited to '.bashrc')
-rw-r--r--.bashrc58
1 files changed, 0 insertions, 58 deletions
diff --git a/.bashrc b/.bashrc
deleted file mode 100644
index c202a34..0000000
--- a/.bashrc
+++ /dev/null
@@ -1,58 +0,0 @@
-#
-# ~/.bashrc
-#
-
-# If not running interactively, don't do anything
-[[ $- != *i* ]] && return
-
-
-
-# sanitize TERM:
-safe_term=${TERM//[^[:alnum:]]/?}
-match_lhs=""
-
-[[ -f ~/.dir_colors ]] && match_lhs="${match_lhs}$(<~/.dir_colors)"
-[[ -f /etc/DIR_COLORS ]] && match_lhs="${match_lhs}$(</etc/DIR_COLORS)"
-[[ -z ${match_lhs} ]] \
- && type -P dircolors >/dev/null \
- && match_lhs=$(dircolors --print-database)
-
-if [[ $'\n'${match_lhs} == *$'\n'"TERM "${safe_term}* ]] ; then
-
- # we have colors :-)
-
- # Enable colors for ls, etc. Prefer ~/.dir_colors
- if type -P dircolors >/dev/null ; then
- if [[ -f ~/.dir_colors ]] ; then
- eval $(dircolors -b ~/.dir_colors)
- elif [[ -f /etc/DIR_COLORS ]] ; then
- eval $(dircolors -b /etc/DIR_COLORS)
- fi
- fi
-
-else
-
- # show root@ when we do not have colors
-
- PS1="\u@\h \w \$([[ \$? != 0 ]] && echo \"! \")\$ "
-
- # Use this other PS1 string if you want \W for root and \w for all other users:
- # PS1="\u@\h $(if [[ ${EUID} == 0 ]]; then echo '\W'; else echo '\w'; fi) \$([[ \$? != 0 ]] && echo \":( \")\$ "
-fi
-
-alias ls="ls --color=auto"
-alias dir="dir --color=auto"
-alias grep="grep --color=auto"
-alias dmesg='dmesg --color'
-
-PS1="$(if [[ ${EUID} == 0 ]]; then echo '\[\033[01;31m\]\h'; else echo '\[\033[01;32m\]\u@\h'; fi)\[\033[01;34m\] \w \$([[ \$? != 0 ]] && echo \"\[\033[01;31m\]!\[\033[01;34m\] \")\\$\[\033[00m\] "
-#PS1='[\u@\h \W]\$ '
-unset safe_term match_lhs
-
-# Try to enable the auto-completion (type: "pacman -S bash-completion" to install it).
-[ -r /usr/share/bash-completion/bash_completion ] && . /usr/share/bash-completion/bash_completion
-# Try to enable the "Command not found" hook ("pacman -S pkgfile" to install it).
-# See also: https://wiki.archlinux.org/index.php/Bash#The_.22command_not_found.22_hook
-[ -r /usr/share/doc/pkgfile/command-not-found.bash ] && . /usr/share/doc/pkgfile/command-not-found.bash
-
-neofetch