summaryrefslogtreecommitdiff
path: root/common/.profile
diff options
context:
space:
mode:
Diffstat (limited to 'common/.profile')
-rw-r--r--common/.profile51
1 files changed, 51 insertions, 0 deletions
diff --git a/common/.profile b/common/.profile
new file mode 100644
index 0000000..cf23111
--- /dev/null
+++ b/common/.profile
@@ -0,0 +1,51 @@
+# if running bash
+if [ -n "$BASH_VERSION" ]; then
+ # include .bashrc if it exists
+ if [ -f "$HOME/.bashrc" ]; then
+ . "$HOME/.bashrc"
+ fi
+fi
+
+# PATH
+case ":$PATH:" in
+ *":$HOME/.local/bin:"*) ;;
+ *) PATH="$HOME/.local/bin:$PATH" ;;
+esac
+
+case ":$PATH:" in
+ *":$HOME/bin:"*) ;;
+ *) PATH="$HOME/bin:$PATH" ;;
+esac
+
+case ":$PATH:" in
+ *":/sbin:"*) ;;
+ *) PATH="$PATH:/sbin" ;;
+esac
+
+case ":$PATH:" in
+ *:"/usr/sbin":*) ;;
+ *) PATH="$PATH:/usr/sbin" ;;
+esac
+
+which luarocks 2>&1 >/dev/null \
+ && eval `luarocks path`
+
+case ":$PATH:" in
+ *:"$HOME/.luarocks/bin":*) ;;
+ *) PATH="$PATH:$HOME/.luarocks/bin" ;;
+esac
+
+# Aliases
+alias la='ls -a'
+alias ll='ls -l'
+alias lla='ls -al'
+alias l='ls'
+
+# Variables
+export EMAIL="simonparri@ganzeria.com"
+export GOPATH="$HOME/src/go"
+export GEM_HOME="$HOME/.gem"
+export FZF_DEFAULT_OPTS="$FZF_DEFAULT_OPTS --height 20% --layout=reverse"
+
+# Local profile
+[ -f ~/.profile.local ] && . ~/.profile.local