Skip to content

Instantly share code, notes, and snippets.

@machinefriendly
Last active September 6, 2019 07:34
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save machinefriendly/567d369ea8541e44dcb3 to your computer and use it in GitHub Desktop.
Save machinefriendly/567d369ea8541e44dcb3 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment