aboutsummaryrefslogtreecommitdiffstats
path: root/modules/shell/zsh
diff options
context:
space:
mode:
Diffstat (limited to 'modules/shell/zsh')
-rw-r--r--modules/shell/zsh/default.nix29
-rw-r--r--modules/shell/zsh/zshrc23
2 files changed, 0 insertions, 52 deletions
diff --git a/modules/shell/zsh/default.nix b/modules/shell/zsh/default.nix
deleted file mode 100644
index 96df967..0000000
--- a/modules/shell/zsh/default.nix
+++ /dev/null
@@ -1,29 +0,0 @@
-{ config, lib, pkgs, ... }:
-
-{
- options.shell.zsh = {
- enable = lib.mkEnableOption "Enables zsh.";
- };
-
- config = lib.mkIf config.shell.zsh.enable {
- shell.default = lib.mkDefault "zsh";
- shell.command =
- lib.mkIf
- (config.shell.default == "zsh")
- "${pkgs.zsh}/bin/zsh";
-
- programs.zsh.enable = true;
- programs.zsh.dotDir = ".config/zsh";
- programs.zsh.history.path = "${config.xdg.cacheHome}/zsh/history";
- programs.zsh.shellAliases = config.shell.alias;
- programs.zsh.initExtra = ''
-${if config.tools.utils.fzf.enable then
- "eval \"$(fzf --zsh)\""
-else ""}
-${builtins.readFile ./zshrc}
-${if config.scripts.enable then
- "export PATH=${config.home.homeDirectory}/scripts:$PATH"
-else ""}
- '';
- };
-}
diff --git a/modules/shell/zsh/zshrc b/modules/shell/zsh/zshrc
deleted file mode 100644
index 3465071..0000000
--- a/modules/shell/zsh/zshrc
+++ /dev/null
@@ -1,23 +0,0 @@
-setopt PROMPT_SUBST
-
-autoload -U colors && colors
-
-autoload -Uz vcs_info
-precmd() { vcs_info }
-
-zstyle ':vcs_info:git:*' formats '%F{red}┄[%F{cyan}%b%c%F{blue}%a%F{red}]'
-zstyle ':vcs_info:git:*' actionformats '%F{red}┄[%F{cyan}%b%c%F{blue}%a%F{red}]'
-
-zstyle ':vcs_info:*+set-message:*' hooks git-untracked git-dirty
-
-zstyle ':vcs_info:git:*' check-for-changes true
-zstyle ':vcs_info:git:*' stagedstr ' %F{green}✓%f'
-zstyle ':vcs_info:git:*' unstagedstr ' %F{red}✗%f'
-zstyle ':vcs_info:git:*' aheadstr ' %F{blue}⬆%f'
-zstyle ':vcs_info:git:*' behindstr ' %F{yellow}⬇%f'
-
-PROMPT='%F{red}╭──[%F{green}%m%F{red}@%F{blue}%n%F{red}]┄[%F{magenta}%~%F{red}]${vcs_info_msg_0_}%(?..%F{red}┄[%F{white}Exit status: %F{yellow}%?%F{red}] )
-╰─>%f '
-
-bindkey "^[[3~" delete-char
-bindkey "^?" backward-delete-char