summaryrefslogtreecommitdiff
path: root/.config/.bashrc
diff options
context:
space:
mode:
Diffstat (limited to '.config/.bashrc')
-rw-r--r--.config/.bashrc24
1 files changed, 24 insertions, 0 deletions
diff --git a/.config/.bashrc b/.config/.bashrc
new file mode 100644
index 0000000..6ca0e5c
--- /dev/null
+++ b/.config/.bashrc
@@ -0,0 +1,24 @@
+# .bashrc
+
+# If not running interactively, don't do anything
+[[ $- != *i* ]] && return
+
+alias ls='ls --color=auto'
+alias ll='ls -lh'
+alias l='ls -lha'
+
+PURPLE="\[$(tput setaf 5)\]"
+RESET="\[$(tput sgr0)\]"
+
+PS1="[\u@${PURPLE}\h${RESET} \w]\n> "
+PS2=">> "
+
+# export XDG_RUNTIME_DIR=/run/user/$(id -u)
+
+if [ -d "$HOME/.local/bin" ] ; then
+ PATH="$HOME/.local/bin:$PATH"
+fi
+
+if [[ -z $DISPLAY ]] && [[ $(tty) = "/dev/tty1" ]]; then
+ exec startx &> /dev/null
+fi