Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
gr4viton
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
2 ms
·
1.
▲
by
gr4viton
8y ago
Plus `ask_yes` if you want to ask if user is sure. ask_yes () { read -r -p "$1 = Are you sure? [y/N] " response if [[ "$response" =~ ^([yY][eE][sS]|[yY])+$ ]] then return 0 # true = 0 e
2.
▲
by
gr4viton
8y ago
Well the most used, and first thing i add when i get to a new system is: rcbash='~/.bashrc' alias src="source $rcbash" alias vrc="vim $rcbash" alias vimo="vim -O" # vsplit files
3.
▲
by
gr4viton
8y ago
for the `mkae` you should really use `thefuck` cli anti-typo tool ;) https://github.com/nvbn/thefuck