shuffle around fish-config
This commit is contained in:
parent
1244a55fc8
commit
51104c5387
3 changed files with 28 additions and 25 deletions
25
home.nix
25
home.nix
|
@ -49,31 +49,6 @@
|
|||
MANPAGER = "nvim +Man!";
|
||||
};
|
||||
|
||||
programs.fish = {
|
||||
enable = true;
|
||||
interactiveShellInit =
|
||||
builtins.readFile "${inputs.fish_theme}/fish_prompt.fish" +
|
||||
''
|
||||
set -U fish_greeting
|
||||
|
||||
if status is-interactive
|
||||
# Commands to run in interactive sessions can go here
|
||||
end
|
||||
|
||||
function fish_user_key_bindings
|
||||
# Execute this once per mode that emacs bindings should be used in
|
||||
fish_default_key_bindings -M insert
|
||||
|
||||
# Then execute the vi-bindings so they take precedence when there's a conflict.
|
||||
# Without --no-erase fish_vi_key_bindings will default to
|
||||
# resetting all bindings.
|
||||
# The argument specifies the initial mode (insert, "default" or visual).
|
||||
fish_vi_key_bindings --no-erase insert
|
||||
|
||||
bind \cf 'fg 2>/dev/null; commandline -f repaint'
|
||||
end
|
||||
'';
|
||||
};
|
||||
|
||||
# wayland.windowManager.hyprland = {
|
||||
# enable = true;
|
||||
|
|
18
home/fish/config.fish
Normal file
18
home/fish/config.fish
Normal file
|
@ -0,0 +1,18 @@
|
|||
set -U fish_greeting
|
||||
|
||||
if status is-interactive
|
||||
# Commands to run in interactive sessions can go here
|
||||
end
|
||||
|
||||
function fish_user_key_bindings
|
||||
# Execute this once per mode that emacs bindings should be used in
|
||||
fish_default_key_bindings -M insert
|
||||
|
||||
# Then execute the vi-bindings so they take precedence when there's a conflict.
|
||||
# Without --no-erase fish_vi_key_bindings will default to
|
||||
# resetting all bindings.
|
||||
# The argument specifies the initial mode (insert, "default" or visual).
|
||||
fish_vi_key_bindings --no-erase insert
|
||||
|
||||
bind \cf 'fg 2>/dev/null; commandline -f repaint'
|
||||
end
|
10
home/modules/fish.nix
Normal file
10
home/modules/fish.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{ inputs, ... }:
|
||||
{
|
||||
programs.fish = {
|
||||
enable = true;
|
||||
interactiveShellInit =
|
||||
builtins.readFile "${inputs.fish_theme}/fish_prompt.fish" + "\n" +
|
||||
builtins.readFile ./home/fish/config.fish
|
||||
;
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue