diff options
| author | Mehdi Sadeghi <mehdi@mehdix.org> | 2021-04-18 15:05:33 +0200 |
|---|---|---|
| committer | Mehdi Sadeghi <mehdi@mehdix.org> | 2021-04-18 15:14:01 +0200 |
| commit | a0d93ac5d9a6e0e9687f50b54e5f8b34b8f38f25 (patch) | |
| tree | 6f5414c93f8a13baee2001507600f43d7a37642b /.zshenv | |
| parent | 534744db72b63e9ab6a9ab3f35a6aa59d45d3b5b (diff) | |
Add zshenv and zprofile.
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" + |
