about summary refs log tree commit diff
path: root/users
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--users/fcuny/cli/default.nix2
-rw-r--r--users/fcuny/cli/shell.nix10
-rw-r--r--users/fcuny/cli/zsh.nix49
3 files changed, 11 insertions, 50 deletions
diff --git a/users/fcuny/cli/default.nix b/users/fcuny/cli/default.nix
index 093686e..0a35288 100644
--- a/users/fcuny/cli/default.nix
+++ b/users/fcuny/cli/default.nix
@@ -2,7 +2,7 @@
 
 {
   imports =
-    [ ./backups.nix ./git.nix ./ssh.nix ./tmux.nix ./yt-dlp.nix ./zsh.nix ];
+    [ ./backups.nix ./git.nix ./ssh.nix ./tmux.nix ./yt-dlp.nix ./shell.nix ];
 
   home.packages = [ pkgs.gcc pkgs.gnumake pkgs.jq pkgs.ripgrep ];
 }
diff --git a/users/fcuny/cli/shell.nix b/users/fcuny/cli/shell.nix
new file mode 100644
index 0000000..0e6a790
--- /dev/null
+++ b/users/fcuny/cli/shell.nix
@@ -0,0 +1,10 @@
+{ config, lib, pkgs, ... }:
+
+{
+  programs.fish = {
+    enable = true;
+    interactiveShellInit = ''
+      set fish_greeting
+    '';
+  };
+}
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
-    '';
-  };
-}