summaryrefslogtreecommitdiff
path: root/zsh/.zsh/.zprofile
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2017-12-13 12:26:48 +0100
committerUrbain Vaes <urbain@vaes.uk>2017-12-13 12:26:48 +0100
commit926c3860ad0ce0464eaad00804556b204b1b7d71 (patch)
tree3d2ebac2b094656a1a41923bd20298a9cb575c99 /zsh/.zsh/.zprofile
parent52bccdd45a0e24fa8d38679da3b3d78654761bf6 (diff)
Split zsh configuration in several file
This allows the environment defined in .zshenv to be available when running commands with 'ssh user@host command'
Diffstat (limited to 'zsh/.zsh/.zprofile')
-rw-r--r--zsh/.zsh/.zprofile8
1 files changed, 8 insertions, 0 deletions
diff --git a/zsh/.zsh/.zprofile b/zsh/.zsh/.zprofile
new file mode 100644
index 0000000..13942bb
--- /dev/null
+++ b/zsh/.zsh/.zprofile
@@ -0,0 +1,8 @@
+export EDITOR=vim
+export HISTSIZE=1000000
+
+# We need to reset $PATH because /etc/profile is read after ~/.zshenv
+export PATH="$HOME/bin:$HOME/.guix-profile/bin:$HOME/bin:/usr/lib/surfraw${PATH:+:}$PATH"
+
+# Start X automatically
+[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && exec startx