bashrc: Move settings to .bashrc.kuba. Source from .bashrc

This commit is contained in:
kuben
2019-09-07 11:34:39 +02:00
parent 0868cf101e
commit 21d8890e25
2 changed files with 25 additions and 14 deletions

19
.bashrc Executable file → Normal file
View File

@@ -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

20
.bashrc.kuba Executable file
View File

@@ -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