β² 1607 βΌ siempre lo hago (eviltoast.org) submitted 11 months ago by AleMegadeth@eviltoast.org to c/linuxmemes@lemmy.world 210 comments fedilink hide all child comments
[β] ___f____g___@lemmy.ca 9 points 11 months ago* (2 children) I see everyone posting about Ctrl+R, here's a couple more useful CLI shortcuts you might enjoy: cd - (change directory to $OLDPWD usually the previous directory) git checkout - (similarly checkout the previous branch) Ctrl+A (return caret to beginning of command, great when you forgot a positional argument and you were almost done typing the command) Ctrl+E (similar to Ctrl+A but move to the end of the command) permalink fedilink source hideshow 4 child comments replies: [β] ytg@sopuli.xyz 5 points 11 months ago Ctrl+A, Ctrl+E Many more basic Emacs keybindings work, actually! Including C-f, C-b, C-p and C-n (if you prefer them over arrow keys) as well as M-f and M-b to move by words, C-k, M-d and C-y for killing/yanking (but not M-w) and C-SPC, C-w, C-x C-x for region manipulation (tested in Bash and ZSH) permalink fedilink source parent [β] BCsven@lemmy.ca 1 point 11 months ago (2 children) Ctrl+L to clear the terminal screen, instead of typing clear permalink fedilink source parent hideshow 4 child comments replies: [β] Inkstainthebat@pawb.social 2 points 11 months ago Not super into that since I've found all it does (at least in zsh) is print a bunch of blank lines permalink fedilink source parent [β] atx_aquarian@lemmy.world 2 points 11 months ago Also Ctrl-u to clear the command line. permalink fedilink source parent
[β] ytg@sopuli.xyz 5 points 11 months ago Ctrl+A, Ctrl+E Many more basic Emacs keybindings work, actually! Including C-f, C-b, C-p and C-n (if you prefer them over arrow keys) as well as M-f and M-b to move by words, C-k, M-d and C-y for killing/yanking (but not M-w) and C-SPC, C-w, C-x C-x for region manipulation (tested in Bash and ZSH) permalink fedilink source parent
[β] BCsven@lemmy.ca 1 point 11 months ago (2 children) Ctrl+L to clear the terminal screen, instead of typing clear permalink fedilink source parent hideshow 4 child comments replies: [β] Inkstainthebat@pawb.social 2 points 11 months ago Not super into that since I've found all it does (at least in zsh) is print a bunch of blank lines permalink fedilink source parent [β] atx_aquarian@lemmy.world 2 points 11 months ago Also Ctrl-u to clear the command line. permalink fedilink source parent
[β] Inkstainthebat@pawb.social 2 points 11 months ago Not super into that since I've found all it does (at least in zsh) is print a bunch of blank lines permalink fedilink source parent
[β] atx_aquarian@lemmy.world 2 points 11 months ago Also Ctrl-u to clear the command line. permalink fedilink source parent