From 48818887a1b9834ba8bc419d72e3fc943abdd260 Mon Sep 17 00:00:00 2001 From: paul-loedige Date: Thu, 19 Nov 2020 22:02:50 +0100 Subject: [PATCH] added bash dotfiles --- bash/.bash_profile | 8 ++++++++ bash/.bashrc | 11 +++++++++++ 2 files changed, 19 insertions(+) create mode 100644 bash/.bash_profile create mode 100644 bash/.bashrc diff --git a/bash/.bash_profile b/bash/.bash_profile new file mode 100644 index 0000000..f7639f2 --- /dev/null +++ b/bash/.bash_profile @@ -0,0 +1,8 @@ +# +# ~/.bash_profile +# + +[[ -f ~/.bashrc ]] && . ~/.bashrc +if [ -z "${DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then + exec startx +fi diff --git a/bash/.bashrc b/bash/.bashrc new file mode 100644 index 0000000..2ba968e --- /dev/null +++ b/bash/.bashrc @@ -0,0 +1,11 @@ +# +# ~/.bashrc +# + +# If not running interactively, don't do anything +[[ $- != *i* ]] && return + +alias ls='ls --color=auto' +PS1='[\u@\h \W]\$ ' + +neofetch