mirror of
https://github.com/jbranchaud/til
synced 2026-01-06 00:28:01 +00:00
Add Jump To The Ends Of Your Shell History as a unix til
This commit is contained in:
15
unix/jump-to-the-ends-of-your-shell-history.md
Normal file
15
unix/jump-to-the-ends-of-your-shell-history.md
Normal file
@@ -0,0 +1,15 @@
|
||||
# Jump To The Ends Of Your Shell History
|
||||
|
||||
There are all sorts of ways to do things in your shell environment without
|
||||
reaching for the arrow keys. For instance, if you want to move _up_ to the
|
||||
previous command, you can hit `Ctrl-p`. To move _down_ to the next
|
||||
command in your shell history, you can hit `Ctrl-n`.
|
||||
|
||||
But what if you want to move to the beginning and end of your entire shell
|
||||
history?
|
||||
|
||||
Find your meta key (probably the one labeled `alt`) and hit `META-<` and
|
||||
`META->` to move to the end and beginning of your shell history,
|
||||
respectively.
|
||||
|
||||
[source](https://www.gnu.org/software/bash/manual/html_node/Commands-For-History.html)
|
||||
Reference in New Issue
Block a user