News for hackers. Stuff that matters.
Re:Suicide Linux by tekstar on Thursday October 26, 2017 @05:12PM (#15563050)
a less destructive version of this is to install `sl` on your linux or mac.
Re:Suicide Linux by knappe on Thursday October 26, 2017 @06:15PM (#15563661)
Fun story:

I was in a sys admin class with a friend of mine and we both had access to the same machine to work on our assignments. I aliased each and every common command to `sl -f` on my friend's user as a prank (he never actually logged in as it turns out). However, my instructor, while projecting his screen to 150+ students (and recording) picked our box and my friend's user to use as an example. My instructor was flabbergasted for a few minutes and the class got a kick out of flying trains. :D

Re:Suicide Linux by KGIII on Thursday October 26, 2017 @05:13PM (#15563060)
That gets installed right after cowsay.

I have my priorities.

Re:Suicide Linux by d33 on Thursday October 26, 2017 @05:23PM (#15563147)
Re:Suicide Linux by lloeki on Thursday October 26, 2017 @06:26PM (#15563761)
Re:Suicide Linux by Retr0spectrum on Thursday October 26, 2017 @07:09PM (#15564058)
Tip: If you ever trigger sl by mistake, and you're in a hurry, press Ctrl+Z instead of Ctrl+C (which doesn't work).
Re:Suicide Linux by geofft on Thursday October 26, 2017 @07:54PM (#15564345)
That seems like a bug in sl: it should signal(SIGTSTP, SIG_IGN) (or put the terminal in raw mode, better yet)
Re:Suicide Linux by tbodt on Friday October 27, 2017 @03:01AM (#15566272)
Re:Suicide Linux by isostatic on Thursday October 26, 2017 @05:42PM (#15563320)
I never type sl, but often type "gerp". I have an alias though.
Re:Suicide Linux by dbcurtis on Thursday October 26, 2017 @07:49PM (#15564308)
My personal nemesis is "mroe". Also aliased. My wife, who drafts a lot of legal contracts, has a problem with "doe snot", which the spelling checker is more than happy with.
Re:Suicide Linux by moses-palmer on Thursday October 26, 2017 @06:15PM (#15563660)
A friend of mine aliased `git status` `git statsu`; I, being lazier, chose `git st`. Any time saved I lost by not copying his other alias, `c = commit -amSTUFF`...
Re:Suicide Linux by lorenzhs on Friday October 27, 2017 @05:12AM (#15566805)
For your ~/.gitconfig:

    [alias]
	co = checkout
	psuh = push
	s = status
	l = log
	d = diff
And then alias g=git in your shell configuration. "g s", "g l", etc. But nowadays I just use magit.
Re:Suicide Linux by Someone on Thursday October 26, 2017 @06:39PM (#15563853)
I must be lazier. I use `gitst` for `git status`. That is 1/6 shorter and IMO not harder to remember.
Re:Suicide Linux by akx on Saturday October 28, 2017 @07:29AM (#15574782)

    ~ $ abbr | grep git | sort
    abbr af 'git kit autofixup'
    abbr amend 'git commit --amend'
    abbr fixup 'git commit --fixup'
    abbr gb 'git branch'
    abbr gcan 'git commit --amend --no-edit'
    abbr gcm 'git commit -m'
    abbr gco 'git checkout'
    abbr gcop 'git checkout -p'
    abbr gfa 'git fetch --all -p'
    abbr gkdm 'git kit del_merged'
    abbr gl 'git log --oneline --color --decorate -n20 --graph'
    abbr gp 'git pull --ff-only --all -p'
    abbr gph 'git push -u origin HEAD'
    abbr gre 'git rebase'
    abbr grec 'git rebase --continue'
    abbr grem 'git rebase -i master'
    abbr greom 'git rebase -i origin/master'
    abbr greum 'git rebase -i upstream/master'
    abbr gs 'git status'
    abbr gxa 'gitx --all'
    abbr namend 'git commit --amend --no-edit'
Re:Suicide Linux by DCoder on Friday October 27, 2017 @01:07AM (#15565850)
See also SCM Breeze [0], which shortens git commands even more:

    git status -> gs
    git add -> ga
    git commit -> gc
    ...
[0]: https://github.com/scmbreeze/scm_breeze
Re:Suicide Linux by Bootvis on Friday October 27, 2017 @06:36AM (#15567132)
I win:

        alias add='git add'
	alias st='git status'
	alias ci='git commit'
	alias br='git branch'
	alias di='git diff'
Re:Suicide Linux by njharman on Thursday October 26, 2017 @08:16PM (#15564475)
You all are doing way too much typing

gt git status ga git add gdd git diff to develop gdn same but name in only

Re:Suicide Linux by carapace on Friday October 27, 2017 @12:36AM (#15565749)
`gits`

also

`gitv` = git diff

`gitvc` = git diff --cached

Re:Suicide Linux by noir_lord on Thursday October 26, 2017 @05:55PM (#15563439)
for me it's "date" and "data" since I type both of those quite a lot (I don't have a clock on my desktop, I just use date when I need to know the time, I find a clock distracting because I get that "well it's 27 minutes til that meeting, never getting in the the zone in that time, better check HN" thing).
Re:Suicide Linux by vacri on Thursday October 26, 2017 @07:33PM (#15564213)
I frequently try to "isntall" things...
Re:Suicide Linux by Shorel on Friday October 27, 2017 @05:25AM (#15566856)
For some reason I always type FORM in SQL and FROM in HTML. Then I edit.
Re:Suicide Linux by osxrand on Thursday October 26, 2017 @09:20PM (#15564822)
installed and checked the man page, hmm 'flies like the galaxy express 999' wonder what that is

$ ls -F

dammit!

$ sl -F

So I guess it's corrected my typos already :)

Re:Suicide Linux by dkresge on Thursday October 26, 2017 @05:48PM (#15563365)
reminds me my once time rather enjoyable error of "ls -l | moire" (with xscreensaver installed)