aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc
diff options
context:
space:
mode:
authorBryson Steck <steck.bryson@gmail.com>2021-11-16 16:40:58 -0700
committerBryson Steck <steck.bryson@gmail.com>2021-11-16 16:40:58 -0700
commit645cfab20016bc8a443e880adfc1c5e7fea92cf6 (patch)
tree477c0823f3513ed84bd4af371f5c3534757992b9 /bash/bashrc
parent9eb803b8a32c318304caac79f4dd1faff5a2f389 (diff)
downloaddotfiles-645cfab20016bc8a443e880adfc1c5e7fea92cf6.tar
dotfiles-645cfab20016bc8a443e880adfc1c5e7fea92cf6.tar.gz
dotfiles-645cfab20016bc8a443e880adfc1c5e7fea92cf6.tar.bz2
forgot to update these in a while
Diffstat (limited to 'bash/bashrc')
-rw-r--r--bash/bashrc95
1 files changed, 0 insertions, 95 deletions
diff --git a/bash/bashrc b/bash/bashrc
deleted file mode 100644
index e939e42..0000000
--- a/bash/bashrc
+++ /dev/null
@@ -1,95 +0,0 @@
-# .bashrc
-
-# Source global definitions
-if [ -f /etc/bashrc ]; then
- . /etc/bashrc
-fi
-
-# Uncomment the following line if you don't like systemctl's auto-paging feature:
-# export SYSTEMD_PAGER=
-
-# User specific aliases and functions
-
-# Alias stuffs
-alias grep='grep --color=auto'
-alias fgrep='fgrep --color=auto'
-alias egrep='egrep --color=auto'
-
-alias ls='ls --color=auto'
-alias la='ls -a'
-alias lsd='ls -lh'
-
-alias record-audio='ffmpeg -f pulse -i default'
-alias python='python3'
-
-
-#
-# Define some colors first: Capitals denote bold
-#
-black='\e[0;30m'
-BLACK='\e[1;30m'
-dgray='\e[0;90m'
-DGRAY='\e[1;90m'
-red='\e[0;31m'
-RED='\e[1;31m'
-lred='\e[0;91m'
-LRED='\e[0;91m'
-green='\e[0;32m'
-GREEN='\e[1;32m'
-lgreen='\e[0;92m'
-LGREEN='\e[1;92m'
-yellow='\e[0;33m'
-YELLOW='\e[1;33m'
-lyellow='\e[0;93m'
-LYELLOW='\e[1;93m'
-blue='\e[0;34m'
-BLUE='\e[1;34m'
-lblue='\e[0;94m'
-LBLUE='\e[1;94m'
-magenta='\e[0;35m'
-MAGENTA='\e[1;35m'
-lmagenta='\e[0;95m'
-LMAGENTA='\e[1;95m'
-cyan='\e[0;36m'
-CYAN='\e[1;36m'
-lcyan='\e[0;96m'
-LCYAN='\e[1;96m'
-lgray='\e[0;37m'
-LGRAY='\e[1;37m'
-NC='\e[0m' # No Color
-
-# Taken from http://www.opinionatedprogrammer.com/2011/01/colorful-bash-prompt-reflecting-git-status/
-function _git_prompt() {
- local git_status="`git status -unormal 2>&1`"
- if ! [[ "$git_status" =~ Not\ a\ git\ repo ]]; then
- if [[ "$git_status" =~ nothing\ to\ commit ]]; then
- local ansi=$GREEN
- elif [[ "$git_status" =~ nothing\ added\ to\ commit\ but\ untracked\ files\ present ]]; then
- local ansi=$RED
- else
- local ansi=$YELLOW
- fi
- if [[ "$git_status" =~ On\ branch\ ([^[:space:]]+) ]]; then
- branch=${BASH_REMATCH[1]}
- #test "$branch" != master || branch=' '
- else
- # Detached HEAD. (branch=HEAD is a faster alternative.)
- branch="`git describe --all --contains --abbrev=4 HEAD 2> /dev/null ||
- echo local`"
- fi
- if ! [[ "$branch" =~ local ]]; then
- echo -n '\['"$ansi"'\](in git branch '"$branch"') '
- fi
- fi
-}
-
-function report_status() {
- RET_CODE=$?
- if [[ $RET_CODE -ne 0 ]] ; then
- echo -ne "[\[$RED\]$RET_CODE\[$NC\]]"
- fi
-}
-
-#export _PS1="\[$RED\]\u\[$NC\]@\[$YELLOW\]\h \[$yellow\]\w | \[$GREEN\]\V\s \[$BLUE\]\d \@ \[$NC\]"
-export _PS1="\[$LCYAN\]\u \[$dgray\]at \[$GREEN\]\h \[$dgray\]in \[$NC\]\w "
-export PROMPT_COMMAND='export PS1="${_status}${_PS1}$(_git_prompt)\[$NC\]\$ "'