mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
Merge pull request #261975 from R-VdP/rvdp/fish_status_subcommands
fish: use the subcommand style for the status command
This commit is contained in:
commit
6b29b95a75
@ -208,7 +208,7 @@ in
|
||||
end
|
||||
|
||||
# if we haven't sourced the login config, do it
|
||||
status --is-login; and not set -q __fish_nixos_login_config_sourced
|
||||
status is-login; and not set -q __fish_nixos_login_config_sourced
|
||||
and begin
|
||||
${sourceEnv "loginShellInit"}
|
||||
|
||||
@ -220,7 +220,7 @@ in
|
||||
end
|
||||
|
||||
# if we haven't sourced the interactive config, do it
|
||||
status --is-interactive; and not set -q __fish_nixos_interactive_config_sourced
|
||||
status is-interactive; and not set -q __fish_nixos_interactive_config_sourced
|
||||
and begin
|
||||
${fishAbbrs}
|
||||
${fishAliases}
|
||||
|
@ -79,7 +79,7 @@ let
|
||||
# note that this is required:
|
||||
# 1. For all shells, not just login shells (mosh needs this as do some other command-line utilities)
|
||||
# 2. Before the shell is initialized, so that config snippets can find the commands they use on the PATH
|
||||
builtin status --is-login
|
||||
builtin status is-login
|
||||
or test -z "$__fish_nixos_env_preinit_sourced" -a -z "$ETC_PROFILE_SOURCED" -a -z "$ETC_ZSHENV_SOURCED"
|
||||
${if fishEnvPreInit != null then ''
|
||||
and begin
|
||||
|
@ -18,7 +18,7 @@ let
|
||||
name = "wrapfish.aliases.fish";
|
||||
destination = "/share/fish/vendor_conf.d/aliases.fish";
|
||||
text = ''
|
||||
status --is-interactive; and begin
|
||||
status is-interactive; and begin
|
||||
# Aliases
|
||||
${aliasesStr}
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user