nushell: Add some aliases
This commit is contained in:
parent
85b5df3d1f
commit
991ed398a1
1 changed files with 4 additions and 19 deletions
|
@ -23,25 +23,10 @@ in
|
||||||
let-env command_not_found_db = ${config.programs.command-not-found.dbPath}
|
let-env command_not_found_db = ${config.programs.command-not-found.dbPath}
|
||||||
let-env NIX_SYSTEM = "${pkgs.system}"
|
let-env NIX_SYSTEM = "${pkgs.system}"
|
||||||
'';
|
'';
|
||||||
# extraConfig = ''
|
extraConfig = ''
|
||||||
# let-env config = ($env.config | update hooks ($env.config.hooks | default [] command_not_found))
|
alias vim = nvim
|
||||||
# let-env config = ($env.config | update hooks.command_not_found ($env.config.hooks.command_not_found | append { |cmdname| (
|
alias tree = ${pkgs.exa}/bin/exa -Fb --git --tree
|
||||||
# let candidates = (open ${config.programs.command-not-found.dbPath} | query db $"select package from Programs where system = '${pkgs.system}' and name = '($cmdname)'")
|
'';
|
||||||
# if ($candidates | is-empty) {
|
|
||||||
# return null
|
|
||||||
# }
|
|
||||||
# let packages = ($candidates | each {|pkg| $"\tnix-shell -p ($pkg.package)" } | str join "\n")
|
|
||||||
# let multiple = if ($candidates | length) > 1 { " one of the following" } else { "" }
|
|
||||||
# (
|
|
||||||
# $"The program (ansi $env.config.color_config.shape_external)($cmdname)(ansi reset) " +
|
|
||||||
# $"is not in your PATH. You can make it available in an ephemeral shell by typing($multiple):\n" +
|
|
||||||
# $"($packages)"
|
|
||||||
# )
|
|
||||||
# )
|
|
||||||
# }
|
|
||||||
# )
|
|
||||||
# )
|
|
||||||
# '';
|
|
||||||
};
|
};
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
|
|
Loading…
Reference in a new issue