summaryrefslogtreecommitdiff
path: root/.profile
diff options
context:
space:
mode:
Diffstat (limited to '.profile')
-rw-r--r--.profile44
1 files changed, 44 insertions, 0 deletions
diff --git a/.profile b/.profile
new file mode 100644
index 0000000..38c74f0
--- /dev/null
+++ b/.profile
@@ -0,0 +1,44 @@
+# Generic
+export LANG=en_US.UTF-8
+export EDITOR=vim
+export TIMER_FORMAT='%d'
+export TIMER_PRECISION=2
+
+# Main shadow bin directory
+export PATH=$HOME/.local/bin:$PATH
+
+# Other bin directories
+export PATH=$HOME/.local/bin/`hostname`:$PATH
+export PATH=$HOME/.cargo/bin:$PATH
+export PATH=$HOME/.yarn/bin:$PATH
+
+# Go
+export GOPATH="$HOME/.go"
+export PATH=$GOPATH/bin:$PATH
+
+export ANDROID_SDK_ROOT=$HOME/Android/Sdk
+
+# Building
+export MAKEFLAGS=-j`lscpu | grep '^CPU(s):' | awk -F' ' '{ print $2 }'`
+export CFLAGS="-O2 -pipe -march=native"
+export CXXFLAGS="${CFLAGS}"
+
+# Sway compatiblity
+if [ "$XDG_SESSION_DESKTOP" = "sway" ] ; then
+ # https://github.com/swaywm/sway/issues/595
+ export _JAVA_AWT_WM_NONREPARENTING=1
+fi
+
+# Preferred editor for local and remote sessions
+# if [[ -n $SSH_CONNECTION ]]; then
+# export EDITOR='vim'
+# else
+# export EDITOR='mvim'
+# fi
+
+# Compilation flags
+# export ARCHFLAGS="-arch x86_64"
+
+# ssh
+# export SSH_KEY_PATH="~/.ssh/rsa_id"
+