aboutsummaryrefslogtreecommitdiff
path: root/bashrc
diff options
context:
space:
mode:
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
+