aboutsummaryrefslogtreecommitdiffstats
path: root/nichijou/home/config/zsh/zprofile
diff options
context:
space:
mode:
authorRenken <renken@shione.net>2022-09-07 16:25:36 +0200
committerRenken <renken@shione.net>2022-09-07 16:28:45 +0200
commit4495ee1d3d66fc993fbb844897b7e9342a8aab24 (patch)
tree65169ce78571bf4cee576c08d2645514d6ecf295 /nichijou/home/config/zsh/zprofile
parent2bfb36d80ce586f0ea51a72414f56863af8ff134 (diff)
downloadshione-4495ee1d3d66fc993fbb844897b7e9342a8aab24.tar.gz
shione-4495ee1d3d66fc993fbb844897b7e9342a8aab24.zip
home: configure zsh
Diffstat (limited to 'nichijou/home/config/zsh/zprofile')
-rw-r--r--nichijou/home/config/zsh/zprofile50
1 files changed, 50 insertions, 0 deletions
diff --git a/nichijou/home/config/zsh/zprofile b/nichijou/home/config/zsh/zprofile
new file mode 100644
index 0000000..a59b620
--- /dev/null
+++ b/nichijou/home/config/zsh/zprofile
@@ -0,0 +1,50 @@
+# set PATH so it includes user's private bin if it exists
+PATH="$PATH:/usr/sbin"
+
+# set PATH so it includes user's private bin if it exists
+if [ -d "$HOME/bin" ] ; then
+ PATH="$HOME/bin:$PATH"
+fi
+
+# set PATH so it includes user's private bin if it exists
+if [ -d "$HOME/.local/bin" ] ; then
+ PATH="$HOME/.local/bin:$PATH"
+fi
+
+export LESS_TERMCAP_md=$'\e[01;31m'
+export LESS_TERMCAP_me=$'\e[0m'
+export LESS_TERMCAP_se=$'\e[0m'
+export LESS_TERMCAP_so=$'\e[01;44;33m'
+export LESS_TERMCAP_ue=$'\e[0m'
+export LESS_TERMCAP_us=$'\e[01;32m'
+
+export EDITOR=nvim
+export VISUAL=nvim
+export MANPAGER='nvim +Man!'
+export MANWIDTH=999
+export GOPATH=$HOME/go
+
+# set PATH so it includes Golang's private bin if it exists
+if [ -d "$GOPATH/bin" ] ; then
+ PATH="$GOPATH/bin:$PATH"
+fi
+
+# set PATH so it includes Golang's private bin if it exists
+if [ -d "$HOME/.cargo/bin" ] ; then
+ PATH="$HOME/cargo/bin:$PATH"
+fi
+
+# Arrange so that ~/.config/guix/current comes first.
+for profile in "$HOME/.guix-profile" "$HOME/.config/guix/current"
+do
+ if [ -f "$profile/etc/profile" ]
+ then
+ # Load the user profile's settings.
+ GUIX_PROFILE="$profile" ; \
+ . "$profile/etc/profile"
+ else
+ # At least define this one so that basic things just work
+ # when the user installs their first package.
+ export PATH="$profile/bin:$PATH"
+ fi
+done