diff options
| author | Mehdi Sadeghi <mehdi@mehdix.org> | 2021-04-16 14:58:45 +0200 |
|---|---|---|
| committer | Mehdi Sadeghi <mehdi@mehdix.org> | 2021-04-16 14:58:45 +0200 |
| commit | 534744db72b63e9ab6a9ab3f35a6aa59d45d3b5b (patch) | |
| tree | 90c54fbe3fc30eee5da0763eb44966d66c91daf7 /.profile | |
Add dotfiles.
Diffstat (limited to '.profile')
| -rw-r--r-- | .profile | 44 |
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" + |
