about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--nix/profiles/home-manager/dev.nix13
-rw-r--r--nix/profiles/home-manager/fish.nix36
2 files changed, 49 insertions, 0 deletions
diff --git a/nix/profiles/home-manager/dev.nix b/nix/profiles/home-manager/dev.nix
index 49fe83a..30d7dca 100644
--- a/nix/profiles/home-manager/dev.nix
+++ b/nix/profiles/home-manager/dev.nix
@@ -32,6 +32,19 @@ in
     goPrivate = [ "github.rbx.com/*" "github.com/fcuny/*" ];
   };
 
+  programs = {
+    alacritty = {
+      enable = true;
+      settings = {
+        font = {
+          normal.family = "Monaspace Argon";
+          bold = { style = "Bold"; };
+          size = 16;
+        };
+      };
+    };
+  };
+
   home.packages = with pkgs; [
     # go
     go-tools
diff --git a/nix/profiles/home-manager/fish.nix b/nix/profiles/home-manager/fish.nix
index 5a2610c..2ea90d9 100644
--- a/nix/profiles/home-manager/fish.nix
+++ b/nix/profiles/home-manager/fish.nix
@@ -4,5 +4,41 @@
     interactiveShellInit = ''
       set fish_greeting ""
     '';
+    shellInit = ''
+      # Fish git prompt
+      set __fish_git_prompt_showuntrackedfiles 'yes'
+      set __fish_git_prompt_showdirtystate 'yes'
+      set __fish_git_prompt_showstashstate \'\'
+      set __fish_git_prompt_showupstream 'none'
+      set -g fish_prompt_pwd_dir_length 3
+
+      # colored man output
+      # from http://linuxtidbits.wordpress.com/2009/03/23/less-colors-for-man-pages/
+      setenv LESS_TERMCAP_mb \e'[01;31m'       # begin blinking
+      setenv LESS_TERMCAP_md \e'[01;38;5;74m'  # begin bold
+      setenv LESS_TERMCAP_me \e'[0m'           # end mode
+      setenv LESS_TERMCAP_se \e'[0m'           # end standout-mode
+      setenv LESS_TERMCAP_so \e'[38;5;246m'    # begin standout-mode - info box
+      setenv LESS_TERMCAP_ue \e'[0m'           # end underline
+      setenv LESS_TERMCAP_us \e'[04;38;5;146m' # begin underline
+
+      function fish_prompt
+        set_color brblack
+        echo -n "["(date "+%H:%M")"] "
+        set_color blue
+        echo -n (hostname -s)
+        if [ $PWD != $HOME ]
+          set_color brblack
+          echo -n ':'
+          set_color yellow
+          echo -n (basename $PWD)
+        end
+        set_color green
+        printf '%s ' (__fish_git_prompt)
+        set_color red
+        echo -n '| '
+        set_color normal
+      end
+    '';
   };
 }