summaryrefslogtreecommitdiff
path: root/.bashrc
diff options
context:
space:
mode:
authorJackson Taylor <jtaylormuffins@gmail.com>2021-01-27 22:02:13 -0500
committerJackson Taylor <jtaylormuffins@gmail.com>2021-01-27 22:02:13 -0500
commite5d3687bf9c7c83e9841f9e70c73a05d8ae56c02 (patch)
tree770cbc8dc0224814de17e42422e1927bbeaccfa9 /.bashrc
Initial commit
Diffstat (limited to '.bashrc')
-rw-r--r--.bashrc20
1 files changed, 20 insertions, 0 deletions
diff --git a/.bashrc b/.bashrc
new file mode 100644
index 0000000..54ff0a2
--- /dev/null
+++ b/.bashrc
@@ -0,0 +1,20 @@
+if [[ $- != *i* ]] ; then
+ # Shell is non-interactive. Be done now!
+ return
+fi
+
+# Vi editing mode
+set -o vi
+
+# Aliases and stuff
+source $HOME/.bash_aliases
+
+# used in PS1 to show off git branch information
+parse_git_branch() {
+ git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
+}
+
+# PS1 format
+export PS1="\[$(tput bold)\]\[$(tput setaf 1)\][\[$(tput setaf 3)\]\u\[$(tput setaf 2)\]@\[$(tput setaf 4)\]\h \[$(tput setaf 5)\]\w\[$(tput setaf 1)\]]\$(parse_git_branch)\[$(tput setaf 7)\] \\$ \[$(tput sgr0)\]"
+
+source $HOME/code/japh/japh