DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’» is a community of 963,274 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in
Cover image for Two things that make my Terminal experience awesome πŸš€ in Mac/Linux
Shrihari Mohan
Shrihari Mohan

Posted on • Updated on

Two things that make my Terminal experience awesome πŸš€ in Mac/Linux

Hello people if you're a terminal or command person you would really wanna know these 2 things.

I have been using iterm2 in mac and Terminator in linux for a very long time because it provides me with the helpful feature that can split a single terminal window in to multiple panes.

When working with several terminal windows, this multiple pane view is extremely useful for organising them.

Iterm2 Split pane view

1. Fig

Fig

The next-generation command line.

favicon fig.io

This man autocompleted almost everything from reading package.json for commands ( web development related work) to github and basic command line operations.

Here is some basic web dev and git flows.

Web Dev & Git Flows

This is currently stable in mac , beta in linux and in the development for windows.

2. theFuck

GitHub logo nvbn / thefuck

Magnificent app which corrects your previous console command.

The Fuck Version Build Status Coverage MIT License

The Fuck is a magnificent app, inspired by a @liamosaur tweet that corrects errors in previous console commands.

Is The Fuck too slow? Try the experimental instant mode!

gif with examples

More examples:

➜ apt-get install vim
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?

➜ fuck
sudo apt-get install vim [enter/↑/↓/ctrl+c]
[sudo] password for nvbn:
Reading package lists... Done
...
Enter fullscreen mode Exit fullscreen mode
➜ git push
fatal: The current branch master has no upstream branch.
To push the current branch and set the remote as upstream, use

    git push --set-upstream origin master


➜ fuck
git push --set-upstream origin master [enter/↑/↓/ctrl+c]
Counting objects: 9, done.
...
Enter fullscreen mode Exit fullscreen mode
➜ puthon
No command 'puthon' found, did you mean
 Command 'python' from package 'python-minimal' (main)
 Command 'python' from package 'python3' (main)
…
Enter fullscreen mode Exit fullscreen mode

Fuck helping me in git

Yep you heard that right and The fuck is available for Mac and Linux.

When I make spelling errors in commands, I say β€œfuck,” and they take it personally. It doesn’t have to be that word personsally if its NSFW. We can configure to something like Jesus!

It doesn't have to be that word personsally if its NSFW. We can configure to something like Jesus

For my purposes, it works flawlessly, and I also have an Ubuntu laptop where I frequently use it.

PeaceπŸ•Š


If you are here it means you may have enjoyed reading this blog. Just follow me @shrihari which will motivate to write more, contribute open source.

You can make a drink Buttermilk πŸ₯›. Small support comes a long way!

Subscribe If you want to receive these blogs in your mail from @Medium for free!

More Free Articles From me

Top comments (2)

Collapse
 
adxl profile image
Adel Sen

Thanks for sharing :)
Unfortunately, Fig is not available yet for Linux, guess we'll have to wait

Collapse
 
shrihari profile image
Shrihari Mohan Author

Oh sorry , it's in closed beta . You can sign up at fig you will receive invitation shortly.

This post blew up on DEV in 2020:

js visualized

πŸš€βš™οΈ JavaScript Visualized: the JavaScript Engine

As JavaScript devs, we usually don't have to deal with compilers ourselves. However, it's definitely good to know the basics of the JavaScript engine and see how it handles our human-friendly JS code, and turns it into something machines understand! πŸ₯³

Happy coding!