master
Elias Almqvist 4 months ago
parent 6703e6cb0b
commit a85194f4dd
No known key found for this signature in database
GPG Key ID: E31A99CE3E75A158
  1. 18
      nix-darwin/home.nix

@ -94,7 +94,8 @@
gh gh
# c/c++ # c/c++
gcc # gcc
clang
# haskell # haskell
ghc ghc
@ -175,7 +176,8 @@
# /etc/profiles/per-user/elal/etc/profile.d/hm-session-vars.sh # /etc/profiles/per-user/elal/etc/profile.d/hm-session-vars.sh
# #
home.sessionVariables = { home.sessionVariables = {
# EDITOR = "emacs"; EDITOR = "nvim";
SHELL = "${pkgs.zsh}/bin/zsh";
}; };
# Let Home Manager install and manage itself. # Let Home Manager install and manage itself.
@ -208,6 +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 = ''
# Function to check if we're in a nix-shell
in_nix_shell() {
if [ -n "$IN_NIX_SHELL" ]; then
echo "(devenv) "
fi
}
# Set the prompt
setopt PROMPT_SUBST
export PS1='$(in_nix_shell)%B%F{cyan}%~%f%b %# '
'';
oh-my-zsh = { oh-my-zsh = {
enable = true; enable = true;
theme = "half-life"; theme = "half-life";

Loading…
Cancel
Save