aboutsummaryrefslogtreecommitdiff
path: root/users/fcuny/cli/zsh.nix
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-03-25 17:19:40 -0700
committerFranck Cuny <franck@fcuny.net>2022-03-25 17:20:05 -0700
commite6852f1cd8fd10c2f06b553f5626e3fc9bd99561 (patch)
tree4fc304ff272fee18e14724f0456c63c593da0aa8 /users/fcuny/cli/zsh.nix
parentdocs: add more documentation! (diff)
downloadinfra-e6852f1cd8fd10c2f06b553f5626e3fc9bd99561.tar.gz
shell: switch from zsh to fish
why not ?
Diffstat (limited to 'users/fcuny/cli/zsh.nix')
-rw-r--r--users/fcuny/cli/zsh.nix49
1 files changed, 0 insertions, 49 deletions
diff --git a/users/fcuny/cli/zsh.nix b/users/fcuny/cli/zsh.nix
deleted file mode 100644
index a27a3c1..0000000
--- a/users/fcuny/cli/zsh.nix
+++ /dev/null
@@ -1,49 +0,0 @@
-{config, lib, pkgs, ...}:
-
-{
-
- programs.zsh = {
- enable = true;
- enableAutosuggestions = true;
- enableCompletion = true;
- defaultKeymap = "emacs";
- history = {
- save = 100000;
- extended = true;
- ignoreDups = true;
- };
-
- initExtraFirst = ''
- # Activate home-manager environment, if not already enabled
- [ -d "$HOME/.nix-profile" ] || /nix/var/nix/profiles/per-user/$USER/home-manager/activate &> /dev/null
- '';
-
- initExtra = ''
- # Print timing statistics for everything which takes longer than 5 seconds of
- # user + system time ('sleep 6' does not work because of 0% user/system time!).
- REPORTTIME=5
-
- autoload -U colors && colors
-
- autoload -Uz vcs_info add-zsh-hook
- setopt prompt_subst
-
- add-zsh-hook precmd vcs_info
-
- # Enable checking for (un)staged changes, enabling use of %u and %c
- zstyle ':vcs_info:*' check-for-changes true
-
- PROMPT='%K{cyan}%F{black}%m%k%f %~%F{red}$vcs_info_msg_0_%f %# '
-
- # man zshall /forward-word /backward-word - word splitting as with bash
- WORDCHARS='*?_-.[]~=&;!#$%^(){}<>'
-
- # For tramp (emacs).
- if [ "$TERM" = "dumb" ]; then
- unset PROMPT
- PS1='$ '
- unsetopt zle
- fi
- '';
- };
-}