Last active
October 4, 2017 01:41
-
-
Save belchior/d06c48a6182a9346145789d297a0178c to your computer and use it in GitHub Desktop.
Update Atom Editor to the latest version in Ubuntu
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
| function atom-url; | |
| curl -s https://api.github.com/repos/atom/atom/releases/latest | awk '/browser_download_url.*deb/ { print $2 }' | sed 's/"//g' | |
| end; | |
| function atom-download; | |
| curl -LOk (atom-url) | |
| end; | |
| function atom-install; | |
| sudo dpkg -i ./atom-amd64.deb | |
| end; | |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
First, you need to add the snippets to your fish config.
And then reload your config
Now you are ready to use the commands
At the future you only need to execute the above commands to make Atom updated