feat: configuring shell & add fish shell
This commit is contained in:
parent
f20e3a6b57
commit
e73cc0c0f5
10 changed files with 130 additions and 22 deletions
17
modules/home/rsydn/shell/fish.nix
Normal file
17
modules/home/rsydn/shell/fish.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{ config, pkgs, lib, ... }: {
|
||||
imports = [ ./oh-my-posh ];
|
||||
|
||||
programs.fish = {
|
||||
enable = true;
|
||||
interactiveShellInit = ''
|
||||
set -g fish_greeting ""
|
||||
set -gx EDITOR nvim
|
||||
set -gx VISUAL nvim
|
||||
'';
|
||||
};
|
||||
|
||||
programs.oh-my-posh.enableFishIntegration = lib.mkDefault true;
|
||||
|
||||
# Ensure fish is available for login shells on Linux hosts.
|
||||
home.packages = lib.mkAfter [ pkgs.fish ];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue