Use fish
This commit is contained in:
@@ -18,6 +18,7 @@
|
|||||||
users.users.nettika = {
|
users.users.nettika = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
extraGroups = [ "wheel" "networkmanager" ];
|
extraGroups = [ "wheel" "networkmanager" ];
|
||||||
|
shell = pkgs.fish;
|
||||||
};
|
};
|
||||||
|
|
||||||
security.sudo.wheelNeedsPassword = false;
|
security.sudo.wheelNeedsPassword = false;
|
||||||
@@ -47,6 +48,10 @@
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
programs.fish = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
git-crypt
|
git-crypt
|
||||||
htop
|
htop
|
||||||
|
@@ -7,4 +7,23 @@
|
|||||||
config.programs.bash.promptInit = ''
|
config.programs.bash.promptInit = ''
|
||||||
PS1="\[\e]0;\u@\h: \w\a\]\n${config.promptEmoji} \[\033[1;$((UID ? 32 : 31))m\]\w \\$\[\033[0m\] "
|
PS1="\[\e]0;\u@\h: \w\a\]\n${config.promptEmoji} \[\033[1;$((UID ? 32 : 31))m\]\w \\$\[\033[0m\] "
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
config.programs.fish = {
|
||||||
|
promptInit = ''
|
||||||
|
function fish_prompt
|
||||||
|
echo -n '${config.promptEmoji} '
|
||||||
|
set_color brgreen
|
||||||
|
echo -n $PWD
|
||||||
|
set_color normal
|
||||||
|
echo -n ' > '
|
||||||
|
end
|
||||||
|
function fish_right_prompt
|
||||||
|
set_color bryellow
|
||||||
|
echo -n (git branch --show-current 2>/dev/null)
|
||||||
|
end
|
||||||
|
'';
|
||||||
|
shellInit = ''
|
||||||
|
set -g fish_greeting
|
||||||
|
'';
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user