nix/tmux: use fish as default shell
Anirudh Oppiliappan x@icyphox.sh
Fri, 07 Jun 2024 13:57:24 +0300
3 files changed,
34 insertions(+),
0 deletions(-)
M
programs/common.nix
→
programs/common.nix
@@ -14,6 +14,7 @@ ./neovim.nix
./bash.nix ./ssh.nix ./alacritty.nix + ./fish.nix ]; programs = {
A
programs/fish.nix
@@ -0,0 +1,30 @@
+{ config +, pkgs +, ... +}: + +{ + programs.fish = { + enable = true; + interactiveShellInit = '' + set fish_greeting # Disable greeting + ''; + functions = { + fish_prompt = '' + printf '\n\001\002▲\001\002 ' + ''; + }; + shellAbbrs = { + gc = "git commit -v -S"; + gst = "git status --short"; + ga = "git add"; + gd = "git diff --minimal"; + gl = "git log --oneline --decorate --graph"; + k = "kubectl"; + }; + shellAliases = { + n = "z"; + "..." = "cd ../.."; + }; + }; +}
M
programs/tmux.nix
→
programs/tmux.nix
@@ -96,6 +96,9 @@
set -g terminal-overrides ',xterm-256color:Tc' set -g default-terminal "tmux-256color" set -as terminal-overrides ',xterm*:sitm=\E[3m' + + set -g default-shell "/etc/profiles/per-user/icy/bin/fish" + set -g default-command "/etc/profiles/per-user/icy/bin/fish" ''; }; }