launch fish shell automatically on servers
This commit is contained in:
parent
e0d3821128
commit
866847a833
2 changed files with 22 additions and 0 deletions
|
|
@ -39,6 +39,17 @@
|
|||
};
|
||||
nix.settings.auto-optimise-store = true;
|
||||
|
||||
# Launch fish shell
|
||||
programs.bash = {
|
||||
interactiveShellInit = ''
|
||||
if [[ $(${pkgs.procps}/bin/ps --no-header --pid=$PPID --format=comm) != "fish" && -z ''${BASH_EXECUTION_STRING} ]]
|
||||
then
|
||||
shopt -q login_shell && LOGIN_OPTION='--login' || LOGIN_OPTION=""
|
||||
exec ${pkgs.fish}/bin/fish $LOGIN_OPTION
|
||||
fi
|
||||
'';
|
||||
};
|
||||
|
||||
# Networking
|
||||
networking.hostName = "dnsc-vps-sm";
|
||||
networking.hostId = "380f585f";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue