From 4495ee1d3d66fc993fbb844897b7e9342a8aab24 Mon Sep 17 00:00:00 2001 From: Renken Date: Wed, 7 Sep 2022 16:25:36 +0200 Subject: home: configure zsh --- nichijou/home/config/zsh/zprofile | 50 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 nichijou/home/config/zsh/zprofile (limited to 'nichijou/home/config/zsh/zprofile') 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 -- cgit v1.2.3