diff options
Diffstat (limited to 'nichijou/home/config/zsh/zprofile')
-rw-r--r-- | nichijou/home/config/zsh/zprofile | 50 |
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 |