From 21d8890e257da2be8b0810dc73af9553dddc2511 Mon Sep 17 00:00:00 2001 From: kuben Date: Sat, 7 Sep 2019 11:34:39 +0200 Subject: [PATCH] bashrc: Move settings to .bashrc.kuba. Source from .bashrc --- .bashrc | 19 +++++-------------- .bashrc.kuba | 20 ++++++++++++++++++++ 2 files changed, 25 insertions(+), 14 deletions(-) mode change 100755 => 100644 .bashrc create mode 100755 .bashrc.kuba diff --git a/.bashrc b/.bashrc old mode 100755 new mode 100644 index 84315cf..32ec1f3 --- a/.bashrc +++ b/.bashrc @@ -1,15 +1,6 @@ -# -# ~/.bashrc -# +# .bashrc -# If not running interactively, don't do anything -[[ $- != *i* ]] && return -alias ls='ls --color=auto' -PS1='[\u@\h \W]\$ ' -export EDITOR="vim" -export CUPS_GSSSERVICENAME=HTTP -export PATH=$PATH:/home/kuba/bin -export PATH="$HOME/git/esp-open-sdk/xtensa-lx106-elf/bin/:$PATH" - -alias dotfiles="/usr/bin/git --git-dir=$HOME/.dotfiles.git --work-tree=$HOME" -xhost +local:kuba > /dev/null +# Source my settings +if [ -f "$HOME/.bashrc.kuba" ]; then + . "$HOME/.bashrc.kuba" +fi diff --git a/.bashrc.kuba b/.bashrc.kuba new file mode 100755 index 0000000..6f5c910 --- /dev/null +++ b/.bashrc.kuba @@ -0,0 +1,20 @@ +# +# ~/.bashrc.kuba +# + +# If not running interactively, don't do anything +[[ $- != *i* ]] && return +alias ls='ls --color=auto' +PS1='[\u@\h \W]\$ ' +export EDITOR="vim" +export CUPS_GSSSERVICENAME=HTTP +export PATH=$PATH:/home/kuba/bin +export PATH="$HOME/git/esp-open-sdk/xtensa-lx106-elf/bin/:$PATH" + +alias dotfiles="/usr/bin/git --git-dir=$HOME/.dotfiles.git --work-tree=$HOME" +xhost +local:kuba > /dev/null + +if xhost >& /dev/null ; then + # X is running + xhost +local:kuba > /dev/null +fi