nvbn/thefuck

Support `source ~/.bashrc` when installing

Open

#972 aperta il 10 ott 2019

Vedi su GitHub
 (9 commenti) (1 reazione) (0 assegnatari)Python (3949 fork)batch import
enhancementhacktoberfesthelp wanted

Metriche repository

Star
 (96.953 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

When you first install thefuck, you get this nice message.

$ fuck
Seems like fuck alias isn't configured!
Please put eval "$(thefuck --alias)" in your ~/.bashrc and apply changes with source ~/.bashrc or restart your shell.
Or run fuck second time for configuring it automatically.
More details - https://github.com/nvbn/thefuck#manual-installation

$ fuck
fuck alias configured successfully!
For applying changes run source ~/.bashrc or restart your shell.

Which is great and I love it, however, when I run fuck again, I get the same message.

$ fuck
fuck alias configured successfully!
For applying changes run source ~/.bashrc or restart your shell.

Seems like an oversight. It should suggest running source ~/.bashrc.

Guida contributor