Skip to content

Commit 74884db

Browse files
committed
...
1 parent 64fb441 commit 74884db

File tree

2 files changed

+26
-9
lines changed

2 files changed

+26
-9
lines changed

misc/content/2012/09/cool-shell-commands/cool-shell-commands.md

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Tags: shell, terminal, Linux
55
Category: OS
66
Slug: cool-shell-commands
77
Author: Ben Chuanlong Du
8-
Modified: 2025-06-05 16:01:19
8+
Modified: 2025-06-09 01:32:01
99

1010
**Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!**
1111

@@ -48,6 +48,12 @@ However, there are serveral terminal command that can help you quickly.
4848

4949
### Retrieving History Commands
5050

51+
It is suggested that you search shell command history using `fzf`.
52+
For more discussions,
53+
please refer to
54+
[Editing Shell Commands Using Vim]( https://www.legendu.net/misc/blog/editing-shell-commands-using-vim )
55+
.
56+
5157
1. `!!` or `!:-1` stands for the last command.
5258
`!!` runs last command and `sudo !!` runs the last command with `sudo` permission.
5359

@@ -71,6 +77,13 @@ However, there are serveral terminal command that can help you quickly.
7177

7278
### Manipulating Commands
7379

80+
It is suggested that you use `ctrl+x` `ctrl+e` or `fzf.history`
81+
to edit shell commands.
82+
For more discussions,
83+
please refer to
84+
[Editing Shell Commands Using Vim]( https://www.legendu.net/misc/blog/editing-shell-commands-using-vim )
85+
.
86+
7487
1. You can use the suffix `:-` to get rid of
7588
the last parameter of the retrieved command.
7689
For example,
@@ -122,6 +135,13 @@ so you can press "Arrow Up" key to retrieve it.
122135

123136
## Retrieve Parameter of Commands
124137

138+
It is suggested that you use `ctrl+x` `ctrl+e` or `fzf.history`
139+
to edit shell commands.
140+
For more discussions,
141+
please refer to
142+
[Editing Shell Commands Using Vim]( https://www.legendu.net/misc/blog/editing-shell-commands-using-vim )
143+
.
144+
125145
1. `!$` stands for the last parameter of last command.
126146

127147
2. `$_` stands for the last parameter of last command.
@@ -159,9 +179,6 @@ there are several indirect ways to do this.
159179
Similarly,
160180
one can use `$(!-2)` to retrieve the result of the 2nd last command.
161181

162-
## Terminal
163-
164-
1. CTRL+X E editor command in an editor
182+
## References
165183

166-
See useful shortcuts at
167-
[Arch Wiki](https://wiki.archlinux.org/index.php/Keyboard_Shortcuts)
184+
- [Arch Wiki](https://wiki.archlinux.org/index.php/Keyboard_Shortcuts)

misc/content/2025/06/configuraing-terminal-in-visual-studio-code/configuraing-terminal-in-visual-studio-code.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
Status: published
22
Date: 2025-06-07 09:45:35
3-
Modified: 2025-06-07 09:45:35
3+
Modified: 2025-06-09 01:26:04
44
Author: Benjamin Du
5-
Slug: configuraing-terminal-in-visual-studio-code
6-
Title: Configuraing Terminal in Visual Studio Code
5+
Slug: configuring-terminal-in-visual-studio-code
6+
Title: Configuring Terminal in Visual Studio Code
77
Category: Computer Science
88
Tags: Computer Science, programming, IDE, editor, Visual Studio Code, VSCode, terminal, configuration
99

0 commit comments

Comments
 (0)