6 ms·
Or you just alias sl=ls and have productivity reach unseen levels!
by pantalaimon 9y ago
Or you just
alias sl=ls
and have productivity reach unseen levels!
- blakesterz 9y agoI have a few "idiot aliases" like that... alias grpe=grep alias gerp=grep
- mulmen 9y agoMy personal favorite is: alias fuck='sudo $(fc -nl -1)' Be very careful with this.
- epse 9y agoWhat about the actual program thefuck? It can fix more than just sudo, and asks you to confirm
- ben509 9y agoOr make history work for you: shopt -s histverify histreedit Bash will let you then confirm the actual command it's going to run: sudo !!
- mulmen 9y agoI use zsh and I don't know what shopt is. That's two commands and !! doesn't work in aliases.
- StavrosK 9y agoHere's one of my aliases for you: function fuckgit rm -rf /tmp/fuckgit/ git clone --no-checkout (git config --get remote.origin.url) /tmp/fuckgit/ rm -rf .git/ mv /tmp/fuckgit/.git . rm -rf /tmp/fuckgit/ end
- oldgun 9y agoI think you can try this. https://github.com/nvbn/thefuck https://github.com/nvbn/thefuck
- Twirrim 9y agoalias gti='/usr/local/bin/git' alias gut='/usr/local/bin/git'
- strkek 9y ago> grpe Every. Single. Time. Sometimes I even typo it many times in a row. There must be //something// in that combination of letters, because I don't recall ever having that many mistakes with any other commands.
- lallysingh 9y agoI think that many of my typos occur when switching between letters on one hand vs the other. I figure it's a brain hemisphere synchronization thing.
- simias 9y agoI've had "l" aliased to "ls -lhp" for so long that I can't work properly without it. I think many distros also alias "ll" to "ls -l" by default (I think CentOS/RHEL does it at least).
- Symbiote 9y agoI have h=ls and hh=ls -l, which are much more comfortable with the Dvorak keyboard layout. (The equivalent would be j and jj on Qwerty.)
- zarex 9y agoGood idea. Dvorak users unite! Do you use regular dvorak or programmer dvorak?
- Symbiote 9y agoBritish Dvorak, since it keeps ", £, # etc where I expect them, but is still a standard layout available on Linux and Mac.
- barrkel 9y agoI aliased d instead. I also have ll and la but I don't use them that often so didn't change them to be Dvorak optimized.
- erichurkman 9y agoI, too, have "l" aliased, but years of muscle memory I still type "ls -lahp" every single friggin' time. Hey, at least it's portable when I'm ssh'd to another system.
- floatboth 9y agoalias l="tree --dirsfirst -ChFL 1" alias l2="tree --dirsfirst -ChFL 2" alias l3="tree --dirsfirst -ChFL 3" alias l4="tree --dirsfirst -ChFL 4" alias l5="tree --dirsfirst -ChFL 5" ( or https://github.com/ogham/exa https://github.com/ogham/exa in tree mode )
- 9y ago
- tjwds 9y agoFor some reason the typo I tend to make the most is ';s', so I've gone ahead and set `alias s=ls`
- ohstopitu 9y agoI generally have this in my bash_aliases alias ls='ls -lah --color="auto"' alias l='ls -lah --color="auto"' alias ll='ls -lah --color="auto"' alias sl='ls -lah --color="auto"'
- ribs 9y agoThis program reverses the output.
- supercheetah 9y agoI mean, yeah, you could, but that's not as much fun.
- madmax108 9y agoI've set alias ls=sl in dozens of systems belonging to colleagues over the years, just for the lulz! :D :D
- silveira 9y agoalias lsd="ls -d */"