diff options
Diffstat (limited to '.zshenv')
| -rw-r--r-- | .zshenv | 45 |
1 files changed, 45 insertions, 0 deletions
@@ -0,0 +1,45 @@ +# 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/.local/bin/`uname -m`:$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" + |
