From 87483b8297f4f8a01eb9404f4a6d7511c158cd1e Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Thu, 10 Oct 2019 23:09:06 +0200 Subject: add genric alias file and bashrc --- bashrc | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 bashrc (limited to 'bashrc') diff --git a/bashrc b/bashrc new file mode 100644 index 0000000..a8c4d52 --- /dev/null +++ b/bashrc @@ -0,0 +1,18 @@ +# If not running interactively, don't do anything +[[ $- != *i* ]] && return + +pathadd() { + if [ -d "$1" ] && [[ "$PATH" != *"$1"* ]]; then + PATH=$PATH":$1" + fi +} + +pathadd ${HOME}/.local/bin + +DOTFILES_LOCATION=$(dirname $(readlink -f $HOME/.bashrc)) +export DOTFILES_LOCATION + +source $DOTFILES_LOCATION/aliases + +#exec xonsh + -- cgit v1.2.3