aboutsummaryrefslogtreecommitdiff
path: root/bashrc
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2019-10-10 23:09:06 +0200
committerFlorian Fischer <florian.fl.fischer@fau.de>2019-10-10 23:09:06 +0200
commit87483b8297f4f8a01eb9404f4a6d7511c158cd1e (patch)
treef6f55790308398812b20dec9a00f6cfcf5f056a2 /bashrc
parent4148edba74c1c87fce0a624d3fe54666263c2eef (diff)
downloaddotfiles-87483b8297f4f8a01eb9404f4a6d7511c158cd1e.tar.gz
dotfiles-87483b8297f4f8a01eb9404f4a6d7511c158cd1e.zip
add genric alias file and bashrc
Diffstat (limited to 'bashrc')
-rw-r--r--bashrc18
1 files changed, 18 insertions, 0 deletions
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
+