Last active
September 6, 2019 07:34
-
-
Save machinefriendly/567d369ea8541e44dcb3 to your computer and use it in GitHub Desktop.
install and set alias of thefuck on cloud9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install thefuck | |
sudo pip install thefuck | |
# edit alias in .bashrc or .bash_aliases in root | |
nano ~/.bashrc | |
TF_ALIAS=fuck alias fuck='eval $(thefuck $(fc -ln -1)); history -r' | |
source ~/.bashrc | |
# thefuck auto-detect the error, and give suggest >> type alias 'fuck' will get first suggest to work | |
# link for more info on bash alias setting https://www.digitalocean.com/community/tutorials/an-introduction-to-useful-bash-aliases-and-functions |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment