✨ remove duplicate code
This commit is contained in:
parent
78250842be
commit
f2f069a51f
1 changed files with 8 additions and 2 deletions
|
@ -6,7 +6,10 @@
|
||||||
programs.fish.enable = true;
|
programs.fish.enable = true;
|
||||||
home-manager.users.moritz = {
|
home-manager.users.moritz = {
|
||||||
programs = {
|
programs = {
|
||||||
fish = {
|
fish = let
|
||||||
|
# HACK to fix 24bit color support with kitty
|
||||||
|
editor = "TERM=kitty-direct emacsclient -t -a 'emacs -t'";
|
||||||
|
in {
|
||||||
enable = true;
|
enable = true;
|
||||||
shellAbbrs = {
|
shellAbbrs = {
|
||||||
us = "systemctl --user";
|
us = "systemctl --user";
|
||||||
|
@ -30,12 +33,15 @@
|
||||||
rm = "rm -i";
|
rm = "rm -i";
|
||||||
mv = "mv -i";
|
mv = "mv -i";
|
||||||
|
|
||||||
|
# HACK to fix kitty not being recongized
|
||||||
ssh = "TERM=xterm-color command ssh";
|
ssh = "TERM=xterm-color command ssh";
|
||||||
|
|
||||||
nix-switch = "doas nixos-rebuild switch --flake ~/.dotfiles";
|
nix-switch = "doas nixos-rebuild switch --flake ~/.dotfiles";
|
||||||
nix-boot = "doas nixos-rebuild boot --flake ~/.dotfiles";
|
nix-boot = "doas nixos-rebuild boot --flake ~/.dotfiles";
|
||||||
nix-lock =
|
nix-lock =
|
||||||
"doas nixos-rebuild dry-activate --flake ~/.dotfiles --recreate-lock-file";
|
"doas nixos-rebuild dry-activate --flake ~/.dotfiles --recreate-lock-file";
|
||||||
|
|
||||||
|
emacs = editor;
|
||||||
};
|
};
|
||||||
shellInit = ''
|
shellInit = ''
|
||||||
fzf_configure_bindings --git_log=\cg
|
fzf_configure_bindings --git_log=\cg
|
||||||
|
@ -55,7 +61,7 @@
|
||||||
set fish_cursor_visual block
|
set fish_cursor_visual block
|
||||||
|
|
||||||
# Variables
|
# Variables
|
||||||
set -x EDITOR TERM=kitty-direct emacsclient -t # HACK to fix 24bit color support with kitty
|
set -x EDITOR ${editor}
|
||||||
'';
|
'';
|
||||||
functions = {
|
functions = {
|
||||||
gi = ''
|
gi = ''
|
||||||
|
|
Loading…
Reference in a new issue