nushell stuff
This commit is contained in:
parent
396aee7db9
commit
fbd6656d80
6 changed files with 36 additions and 85 deletions
8
modules/home/shell-conf/nushell/config.nu
Normal file
8
modules/home/shell-conf/nushell/config.nu
Normal file
|
@ -0,0 +1,8 @@
|
|||
let fish_completer = {|spans|
|
||||
fish --command $"complete '--do-complete=($spans | str replace --all "'" "\\'" | str join ' ')'"
|
||||
| from tsv --flexible --noheaders --no-infer
|
||||
| rename value description
|
||||
| update value {
|
||||
if ($in | path exists) {$'"($in | path expand --no-symlink | str replace --all "\"" "\\\"" )"'} else {$in}
|
||||
}
|
||||
}
|
|
@ -5,10 +5,12 @@
|
|||
enable = true;
|
||||
shellAliases = {
|
||||
"em" = "emacsclient -n -r";
|
||||
"gtr" = "gtrash -r";
|
||||
"gtr" = "gtrash restore";
|
||||
"rmr" = "gtrash restore";
|
||||
"rm" = "gtrash put";
|
||||
"lg" = "lazygit";
|
||||
};
|
||||
|
||||
configFile.source = ./config.nu;
|
||||
loginFile.text = ''
|
||||
${pkgs.figlet}/bin/figlet -f ($env.HOME)/.local/share/flf/wavy.flf (hostname)
|
||||
'';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue