all repos — dotfiles @ ca6460079249e87c901ed23fe4c7e1bbea104360

my *nix dotfiles

nix/tmux: use fish as default shell
Anirudh Oppiliappan x@icyphox.sh
Fri, 07 Jun 2024 13:57:24 +0300
commit

ca6460079249e87c901ed23fe4c7e1bbea104360

parent

3a22acc86db422b92f00f3b73fd86fcbf8d6395b

3 files changed, 34 insertions(+), 0 deletions(-)

jump to
M programs/common.nixprograms/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.nixprograms/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" ''; }; }