Showing posts with label Terminal. Show all posts
Showing posts with label Terminal. Show all posts

Saturday, August 10, 2013

Direct terminal output to vim

  • command | vim  -
  • e.g ls | vim -  and then :save fileName to store it.

Tuesday, August 6, 2013

Typing a big command on Terminal ?

Why don't you try reverse-i-search  feature built in the terminal. Just press Ctrl + R and only a unique part of the big command that you have already executed before.

Here is how I start eclipse on my system just by typing 'ec'
You might find a problem associated with reverse search that it just searches in the reverse direction and once your are past what you were searching for , your efforts are rendered useless.

There is a solution around this and you can enable forward search by some modifications.

  • Open up .bashrc and add the following lines in it 
    • stty -ixon
  • refresh the bash setting by executing
    • source .bashrc
Now you will be able to search forward using Ctrl + s .

Tuesday, July 30, 2013

World Domination using terminal effectively
Are you a developer running many terminals simultaneously and having a tough time managing em ?

Back at my work I was facing this problem of having to ALT + TAB multiple instances  of many terminals , I gave Screens a try but the keyboard mapping is very hard to get adjusted to . Recently I have come across the Terminator , its pretty handy as its keyboard mapping are very intuitive and easy to grasp. Check out the snap and learn the mapping using man terminator.