thefuck: Add alias option (#6909)

Added an alias option supported by bash, zsh, fish, and nushell integration
This commit is contained in:
Coolio 2025-04-25 19:39:49 -05:00 committed by GitHub
parent 542078066b
commit 4d2d322317
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 13 additions and 7 deletions

View file

@ -12,11 +12,11 @@
assertFileExists home-files/.bashrc
assertFileContains \
home-files/.bashrc \
'eval "$(@thefuck@/bin/thefuck --alias --enable-experimental-instant-mode)"'
'eval "$(@thefuck@/bin/thefuck --alias fuck --enable-experimental-instant-mode)"'
assertFileExists home-files/.zshrc
assertFileContains \
home-files/.zshrc \
'eval "$(@thefuck@/bin/thefuck --alias --enable-experimental-instant-mode)"'
'eval "$(@thefuck@/bin/thefuck --alias fuck --enable-experimental-instant-mode)"'
'';
}

View file

@ -11,7 +11,7 @@
assertFileExists home-files/.bashrc
assertFileContains \
home-files/.bashrc \
'eval "$(@thefuck@/bin/thefuck --alias)"'
'eval "$(@thefuck@/bin/thefuck --alias fuck)"'
assertFileExists home-files/.config/fish/functions/fuck.fish
assertFileContains \
@ -29,7 +29,7 @@
assertFileExists home-files/.zshrc
assertFileContains \
home-files/.zshrc \
'eval "$(@thefuck@/bin/thefuck --alias)"'
'eval "$(@thefuck@/bin/thefuck --alias fuck)"'
assertFileExists home-files/.config/nushell/config.nu
assertFileContains \