Skip to content

Commit

Permalink
fix(init): fix getting alias list for fish
Browse files Browse the repository at this point in the history
  • Loading branch information
eugene-babichenko committed Aug 20, 2024
1 parent 457dc45 commit c8432aa
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/cmd/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,10 @@ function {name}() {{
"
function {name} -d \"Fix your previous command\"
set -l previous_cmd \"$history[1]\"
set -lx FIXIT_FNS \"(
set -lx FIXIT_FNS (
functions | cut -d' ' -f1
alias | cut -d' ' -f2
)\"
echo \"$FIXIT_FNS\"
)
{executable} fix \"$previous_cmd\" | read -l fixed_cmd
if [ \"$fixed_cmd\" != \"\" ]
commandline \"$fixed_cmd\"
Expand Down

0 comments on commit c8432aa

Please sign in to comment.