Move zshrc to external file
This commit is contained in:
parent
529a55c96c
commit
bb7277d345
|
@ -0,0 +1,28 @@
|
||||||
|
# load Cargo
|
||||||
|
if [ -f "$HOME/.cargo/env" ]; then
|
||||||
|
. "$HOME/.cargo/env"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# load Guix
|
||||||
|
export GUIX_PROFILE="/home/nora/.config/guix/current"
|
||||||
|
if [ -f "$GUIX_PROFILE/etc/profile" ]; then
|
||||||
|
. "$GUIX_PROFILE/etc/profile"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# load Guix stuff, if it exists
|
||||||
|
if [[ -d "$HOME/.zsh/functions" ]]; then
|
||||||
|
export fpath=(~/.zsh/functions $fpath)
|
||||||
|
autoload -U compinit && compinit
|
||||||
|
fi
|
||||||
|
|
||||||
|
export NOTESDIR="$HOME/Notes"
|
||||||
|
export PATH="$HOME/.bin:$HOME/.local/bin:$NOTESDIR/bin:$PATH"
|
||||||
|
|
||||||
|
function set_win_title(){
|
||||||
|
echo -ne "\033]0;\007"
|
||||||
|
}
|
||||||
|
|
||||||
|
precmd_functions+=(set_win_title)
|
||||||
|
|
||||||
|
fortune
|
||||||
|
|
26
zsh.nix
26
zsh.nix
|
@ -9,30 +9,6 @@
|
||||||
autosuggestion.enable = false;
|
autosuggestion.enable = false;
|
||||||
enableCompletion = true;
|
enableCompletion = true;
|
||||||
enableVteIntegration = true;
|
enableVteIntegration = true;
|
||||||
initExtra = ''
|
initExtra = (builtins.readFile ./rcfiles/zshrc);
|
||||||
# load Cargo
|
|
||||||
if [ -f "$HOME/.cargo/env ]; then
|
|
||||||
. "$HOME/.cargo/env"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# load Guix
|
|
||||||
export GUIX_PROFILE="/home/nora/.config/guix/current"
|
|
||||||
if [[ -f "$GUIX_PROFILE/etc/profile" ]]; then
|
|
||||||
. "$GUIX_PROFILE/etc/profile"
|
|
||||||
fi
|
|
||||||
if [[ -d "$HOME/.zsh/functions" ]]; then
|
|
||||||
export fpath=(~/.zsh/functions $fpath)
|
|
||||||
autoload -U compinit && compinit
|
|
||||||
fi
|
|
||||||
export NOTESDIR="$HOME/Notes"
|
|
||||||
export PATH="$HOME/.bin:$HOME/.local/bin:$NOTESDIR/bin:$PATH"
|
|
||||||
function set_win_title(){
|
|
||||||
echo -ne "\033]0;\007"
|
|
||||||
}
|
|
||||||
|
|
||||||
precmd_functions+=(set_win_title)
|
|
||||||
|
|
||||||
fortune
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue