From d2c331b9f036951eef062dd5141c75182375ba12 Mon Sep 17 00:00:00 2001 From: Simon Parri Date: Tue, 22 Jul 2025 00:56:22 +0200 Subject: Add current configuration --- common/.profile | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 common/.profile (limited to 'common/.profile') 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 -- cgit v1.2.3