| ▲ | em-bee 4 hours ago | |
i never found !! useful at all when i can just use up arrow to get the entry i want. it becomes more interesting when you can recall older commands, but then too i prefer search because i want to verify what command i am going to run. and i only use sudo to open a root shell. never to run anything directly. i don't want normal and root commands mixed in the same history. i could keep sudo commands out of the history, but then i don't have any history for stuff done as root. with tmux i can switch terminals easily, so i am also not tempted to run things as root that i shouldn't despite having a root shell open. | ||
| ▲ | bandie91 4 hours ago | parent [-] | |
> i want to verify what command i am going to run. shopt -s histverify shopt -s histreedit i dont know why they are not the default. | ||