Skip to main content
deleted 5 characters in body
Source Link
jahroy
  • 468
  • 3
  • 8

You're talking about the greatest feature ever!

You can use vi commands to edit your shell commands (and command history) by adding this to your .bashrc file:

set -o vi

You can also run that command from the command line to affect only your current session.

If you don't use bash, substitue the appropriate rc file for your shell.


This allows you to use vi commands to edit any command...

You can also use j and k to move through your history (after pressing ESC).

You can also use / (after hitting ESC) to search for old commands.

In other words, to find that super-long cp command you did ten minutes ago:

ESC/cpENTER

Then you can cycle through all the matching commands in your history with n and N.

All this makes me 10 trillion times more productive at the command line!

You're talking about the greatest feature ever!

You can use vi commands to edit your shell commands (and command history) by adding this to your .bashrc file:

set -o vi

You can also run that command from the command line to affect only your current session.

If you don't use bash, substitue the appropriate rc file for your shell.


This allows you to use vi commands to edit any command...

You can also use j and k to move through your history (after pressing ESC).

You can also use / (after hitting ESC) to search for old commands.

In other words, to find that super-long cp command you did ten minutes ago:

ESC/cpENTER

Then you can cycle through all the matching commands in your history with n and N.

All this makes me 10 trillion times more productive at the command line!

You're talking about the greatest feature ever!

You can use vi commands to edit shell commands (and command history) by adding this to your .bashrc file:

set -o vi

You can also run that command from the command line to affect only your current session.

If you don't use bash, substitue the appropriate rc file for your shell.


This allows you to use vi commands to edit any command...

You can also use j and k to move through your history (after pressing ESC).

You can also use / (after hitting ESC) to search for old commands.

In other words, to find that super-long cp command you did ten minutes ago:

ESC/cpENTER

Then you can cycle through all the matching commands in your history with n and N.

All this makes me 10 trillion times more productive at the command line!

added 19 characters in body
Source Link
jahroy
  • 468
  • 3
  • 8

You're talking about the greatest feature ever!

You can use vi commands to edit your shell coamdscommands (and command history) addby adding this to your .bashrc file:

set -o vi

You can also run that command from the command line to affect only your current session.

If you don't use bash, substitue the appropriate rc file for your shell.


This allows you to use vi commands to edit any command...

You can also use j and k to move through your history (after pressing ESC).

You can also use / (after hitting ESC) to search for old commands.

In other words, to find that super-long cp command you did ten minutes ago:

ESC/cpENTER

Then you can cycle through all the matching commands in your history with n and N.

All this makes me 10 trillion times more productive at the command line!

You're talking about the greatest feature ever!

You can use vi commands edit your shell coamds (and history) add this to your .bashrc file:

set -o vi

You can also run that command from the command line to affect only your current session.

If you don't use bash, substitue the appropriate rc file for your shell.


This allows you to use vi commands to edit any command...

You can also use j and k to move through your history (after pressing ESC).

You can also use / (after hitting ESC) to search for old commands.

In other words, to find that super-long cp command you did ten minutes ago:

ESC/cpENTER

Then you can cycle through all the matching commands in your history with n and N.

All this makes me 10 trillion times more productive at the command line!

You're talking about the greatest feature ever!

You can use vi commands to edit your shell commands (and command history) by adding this to your .bashrc file:

set -o vi

You can also run that command from the command line to affect only your current session.

If you don't use bash, substitue the appropriate rc file for your shell.


This allows you to use vi commands to edit any command...

You can also use j and k to move through your history (after pressing ESC).

You can also use / (after hitting ESC) to search for old commands.

In other words, to find that super-long cp command you did ten minutes ago:

ESC/cpENTER

Then you can cycle through all the matching commands in your history with n and N.

All this makes me 10 trillion times more productive at the command line!

edited body
Source Link
jahroy
  • 468
  • 3
  • 8

You're talking about the greatest feature ever!

ToYou can use vi commands to edit your shell commandscoamds (and history) add this to your .bashrc file:

set -o vi

You can also run that command from the command line to affect only your current session.

If you don't use bash, substitue the appropriate rc file for your shell.


This allows you to use vi commands to edit any command...

You can also use j and k to move through your history (after pressing ESC).

You can also use / (after hitting ESC) to search for old commands.

In other words, to find that super-long cp command you did ten minutes ago:

ESC/cpENTER

Then you can cycle through all the matching commands in your history with n and N.

All this makes me 10 trillion times more productive at the command line!

You're talking about the greatest feature ever!

To use vi commands to edit your shell commands (and history) add this to your .bashrc file:

set -o vi

You can also run that command from the command line to affect only your current session.

If you don't use bash, substitue the appropriate rc file for your shell.


This allows you to use vi commands to edit any command...

You can also use j and k to move through your history (after pressing ESC).

You can also use / (after hitting ESC) to search for old commands.

In other words, to find that super-long cp command you did ten minutes ago:

ESC/cpENTER

Then you can cycle through all the matching commands in your history with n and N.

All this makes me 10 trillion times more productive at the command line!

You're talking about the greatest feature ever!

You can use vi commands edit your shell coamds (and history) add this to your .bashrc file:

set -o vi

You can also run that command from the command line to affect only your current session.

If you don't use bash, substitue the appropriate rc file for your shell.


This allows you to use vi commands to edit any command...

You can also use j and k to move through your history (after pressing ESC).

You can also use / (after hitting ESC) to search for old commands.

In other words, to find that super-long cp command you did ten minutes ago:

ESC/cpENTER

Then you can cycle through all the matching commands in your history with n and N.

All this makes me 10 trillion times more productive at the command line!

deleted 7 characters in body
Source Link
jahroy
  • 468
  • 3
  • 8
Loading
deleted 9 characters in body
Source Link
jahroy
  • 468
  • 3
  • 8
Loading
deleted 14 characters in body
Source Link
jahroy
  • 468
  • 3
  • 8
Loading
added 6 characters in body
Source Link
jahroy
  • 468
  • 3
  • 8
Loading
Post Migrated Here from stackoverflow.com (revisions)
Source Link
jahroy
  • 468
  • 3
  • 8
Loading