summaryrefslogtreecommitdiff
path: root/.profile
diff options
context:
space:
mode:
authorMehdi Sadeghi <mehdi@mehdix.org>2021-05-16 20:39:05 +0200
committerMehdi Sadeghi <mehdi@mehdix.org>2021-05-16 20:39:39 +0200
commiteb1dbbb8be24a284777dc341c59841051e68045a (patch)
treeb5ffb2d9226c2a5b7e9b5a92b77bff0c7eb99919 /.profile
parentca0f4b3eb74c4c632f1d547f46be5b6a57999dc0 (diff)
Add basic (posix) shell.
Diffstat (limited to '.profile')
-rw-r--r--.profile23
1 files changed, 23 insertions, 0 deletions
diff --git a/.profile b/.profile
new file mode 100644
index 0000000..25b457c
--- /dev/null
+++ b/.profile
@@ -0,0 +1,23 @@
+export ENV=~/.env
+export LANG=en_US.UTF-8
+export LC_TIME=de_DE.UTF-8
+export EDITOR=vim
+export TERM=xterm
+export HISTSIZE=65535
+# autojump needs this
+export PROMPT_COMMAND="history -a"
+
+export PATH=$HOME/.local/bin:$PATH
+export PATH=$HOME/.local/bin/`hostname`:$PATH
+export PATH=$HOME/.local/bin/`uname -m`:$PATH
+export PATH=$HOME/.cargo/bin:$PATH
+export GOPATH="$HOME/.local/share/go"
+export PATH=$GOPATH/bin:$PATH
+export MAKEFLAGS=-j`lscpu | grep '^CPU(s):' | awk -F' ' '{ print $2 }'`
+export CFLAGS="-O2 -pipe -march=native"
+export CXXFLAGS="${CFLAGS}"
+# Sway compatiblity https://github.com/swaywm/sway/issues/595
+export _JAVA_AWT_WM_NONREPARENTING=1
+
+[ $SHELL = "/bin/bash" ] && [ -f ~/.bashrc ] && . ~/.bashrc
+[ -e .config/$(hostname).profile ] && . .config/$(hostname).profile \ No newline at end of file