diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2019-10-10 23:09:06 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2019-10-10 23:09:06 +0200 |
| commit | 87483b8297f4f8a01eb9404f4a6d7511c158cd1e (patch) | |
| tree | f6f55790308398812b20dec9a00f6cfcf5f056a2 /bashrc | |
| parent | 4148edba74c1c87fce0a624d3fe54666263c2eef (diff) | |
| download | dotfiles-87483b8297f4f8a01eb9404f4a6d7511c158cd1e.tar.gz dotfiles-87483b8297f4f8a01eb9404f4a6d7511c158cd1e.zip | |
add genric alias file and bashrc
Diffstat (limited to 'bashrc')
| -rw-r--r-- | bashrc | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -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 + |
