mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2025-12-13 15:00:15 +01:00
feat: fuzzy search not found commands
This commit is contained in:
parent
86ae6a6fb4
commit
135abc75b6
5 changed files with 177 additions and 27 deletions
11
src/args.rs
11
src/args.rs
|
|
@ -19,13 +19,16 @@ pub fn handle_args() {
|
|||
last_command = "$(history | head -n 1)";
|
||||
alias = "$(alias)";
|
||||
}
|
||||
"nu" | "nush" | "nushell"=> {
|
||||
"nu" | "nush" | "nushell" => {
|
||||
last_command = "(history | last).command";
|
||||
alias = "\"\"";
|
||||
println!("with-env {{ _PR_LAST_COMMAND : {},\
|
||||
println!(
|
||||
"with-env {{ _PR_LAST_COMMAND : {},\
|
||||
_PR_ALIAS : {},\
|
||||
_PR_SHELL : {} }} \
|
||||
{{ {} }}", last_command, alias, "nu", binary_path);
|
||||
_PR_SHELL : nu }} \
|
||||
{{ {} }}",
|
||||
last_command, alias, binary_path
|
||||
);
|
||||
std::process::exit(0);
|
||||
}
|
||||
_ => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue