master
Elias Almqvist 8 months ago
parent d418a5b940
commit c725379007
No known key found for this signature in database
GPG Key ID: E31A99CE3E75A158
  1. 24
      nix-darwin/home.nix

@ -210,18 +210,18 @@
ccd = "echo $PWD | xcopy"; ccd = "echo $PWD | xcopy";
cr = "cd $(git rev-parse --show-toplevel)"; cr = "cd $(git rev-parse --show-toplevel)";
}; };
initExtra = '' # initExtra = ''
# Function to check if we're in a nix-shell # # Function to check if we're in a nix-shell
in_nix_shell() { # in_nix_shell() {
if [ -n "$IN_NIX_SHELL" ]; then # if [ -n "$IN_NIX_SHELL" ]; then
echo "(devenv) " # echo "(devenv) "
fi # fi
} # }
#
# Set the prompt # # Set the prompt
setopt PROMPT_SUBST # setopt PROMPT_SUBST
export PS1='$(in_nix_shell)$(PS1)' # export PS1='$(in_nix_shell)$PS1'
''; # '';
oh-my-zsh = { oh-my-zsh = {
enable = true; enable = true;
theme = "half-life"; theme = "half-life";

Loading…
Cancel
Save