feat: big refactor
This commit is contained in:
parent
2c09c21833
commit
ebedec9768
159 changed files with 1927 additions and 2222 deletions
|
|
@ -1,41 +0,0 @@
|
|||
{ config, ... }: {
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
enableCompletion = true;
|
||||
autosuggestion.enable = true;
|
||||
syntaxHighlighting.enable = true;
|
||||
|
||||
oh-my-zsh = {
|
||||
enable = true;
|
||||
theme = "terminalparty";
|
||||
plugins = [
|
||||
"git"
|
||||
"z"
|
||||
];
|
||||
};
|
||||
|
||||
history = {
|
||||
path = "${config.xdg.dataHome}/zsh/histfile";
|
||||
size = 10000;
|
||||
save = 10000;
|
||||
};
|
||||
|
||||
initExtra = ''
|
||||
nix_dev_env() {
|
||||
FLAKE="$PWD/flake.nix"
|
||||
[[ -z "$CURRENT_FLAKE_ENV" ]] && \
|
||||
[[ -f $FLAKE ]] && \
|
||||
echo -n "Enter nix develop? (Y/N): " && \
|
||||
read confirm && \
|
||||
[[ $confirm == [yY] || $confirm == [yY][eE][sS] ]] && \
|
||||
ZSH_PREFIX="$ZSH_PREFIX(flake)" \
|
||||
CURRENT_FLAKE_ENV=$FLAKE \
|
||||
nix develop -c $SHELL
|
||||
}
|
||||
autoload -U add-zsh-hook
|
||||
add-zsh-hook chpwd nix_dev_env
|
||||
|
||||
export PS1="$ZSH_PREFIX$PS1"
|
||||
'';
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue