machinefriendly
12/28/2015 - 8:36 PM

install and set alias of thefuck on cloud9

install and set alias of thefuck on cloud9

# 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