Add fish module to nix

This commit is contained in:
2022-09-02 14:17:04 -07:00
parent a82e4d0b22
commit 9b64eda0f5
4 changed files with 50 additions and 19 deletions

View File

@@ -0,0 +1,45 @@
{ config, lib, pkgs, ... }:
{
programs.zoxide = {
enable = true;
enableFishIntegration = true;
options = ["--cmd j"];
};
programs.fish = {
enable = true;
shellInit = ''
set --universal fish_greeting
set -g -x EDITOR "emacsclient"
set -g -x ALTERNATE_EDITOR "vim"
set -g -x TERMINAL "kitty"
set -g -x MANPAGER less -x
fish_add_path --path ~/.dotfiles/bin ~/.local/bin ~/bin
# TODO - Adjust for nix-managed Doom if I ever do that
fish_add_path ~/.emacs.d/bin
'';
shellAliases = {
ec = "emacsclient -n --alternate-editor=emacs";
pubip = "curl icanhazip.com";
src = "source ~/.config/fish/config.fish && clear";
redesktop = "kquitapp5 plasmashell && kstart5 plasmashell";
pulsefix = "pulseaudio --kill; pulseaudio --start";
};
};
# TODO -- port from Xonsh config
# $MANPAGER = "less -X"
# $LESS = "--ignore-case --QUIET --RAW-CONTROL-CHARS"
#
#
# if $TERM == "xterm-kitty":
# # Wrap ssh with environment variable because servers tend to deal poorly with kitty
# def xterm_ssh(args):
# $TERM="xterm-256color" ssh @(args)
#
# aliases["ssh"] = xterm_ssh
}