bashrc: Get rid of xhost thing
This commit is contained in:
10
.bashrc.kuba
10
.bashrc.kuba
@@ -5,18 +5,19 @@
|
||||
# If not running interactively, don't do anything
|
||||
[[ $- != *i* ]] && return
|
||||
|
||||
# Convenient helper function
|
||||
source_existing() {
|
||||
[ -f "$1" ] && source "$1"
|
||||
}
|
||||
|
||||
alias ls='ls --color=auto'
|
||||
export KRB5_CONFIG=".etcfiles/krb5.conf"
|
||||
export EDITOR="vim"
|
||||
export CUPS_GSSSERVICENAME=HTTP
|
||||
|
||||
alias dotfiles="/usr/bin/git --git-dir=$HOME/.dotfiles.git --work-tree=$HOME"
|
||||
alias dvim="GIT_WORK_TREE='/home/kuba' GIT_DIR='/home/kuba/.dotfiles.git/' vim"
|
||||
|
||||
alias ls='ls --color=auto'
|
||||
|
||||
# Source git prompt
|
||||
source_existing ~/scripts/git-prompt.sh
|
||||
source_existing ~/.bash_prompt.kuba
|
||||
@@ -42,8 +43,3 @@ case $(hostname) in
|
||||
module load python-wrap/3
|
||||
fi
|
||||
esac
|
||||
|
||||
if xhost >& /dev/null ; then
|
||||
# X is running
|
||||
xhost +local:kuba > /dev/null
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user