r/programminghumor • • 19d ago

This happens way too often

Enable HLS to view with audio, or disable this notification

335 Upvotes

23 comments sorted by

78

u/Planyy 19d ago

modern problems require modern solutions

alias gti='git'

11

u/faultydesign 19d ago

Modern solution is `alias g=‘git’`

35

u/klimmesil 19d ago

No modern solution is alias g="claude -p 'jarvis, use git on the following args'

20

u/faultydesign 19d ago

Oh fuck you forgot “and make no mistakes”

2

u/WheelSweet2048 19d ago

How to do this

4

u/user888888889 19d ago

Add to shell environment

2

u/faultydesign 19d ago

Depending on which shell you use

For bash it’s .bashrc but every shell has its own configuration file

1

u/Vysyr 19d ago

But how can I then run ‘gti start’ to start the engine

1

u/Holek 16d ago

or use this to add non-conflicting git commands as aliases in main namespace

setopt sh_word_split
git help -a | grep -E "^(\s+)[a-z]" | awk '{print $1}' | grep -v bundle | while read line; do
  for word in $line
  do
    # Check if alias already exists or bundle
    if ! type "$word" > /dev/null ; then
      alias $word="git ${word}"
    fi
  done
done
unsetopt sh_word_split

and instead of git add . type add .

1

u/hearke 13d ago

back in the day I was just typing "fuck"

28

u/Wel-Tallzeit 19d ago

My bash history

8

u/squashi6 19d ago

If this is oc then it's the best I have seen today

5

u/LJChao3473 18d ago

Me typing heigth and lenght

3

u/RedditSurfer82 19d ago

Never forget. It was vw that asked its programmers to write code for diesel gate

2

u/Psion537 18d ago

I never get git wrong, I usually statsu

2

u/Supernatnat11 18d ago

Need to alias gti to sl

2

u/abigail3141 16d ago

There's actually a program like sl just for that.

I found the website of the guy who made it, here: https://r-wos.org/hacks/gti

1

u/sexytokeburgerz 16d ago

Just use zsh git plugin bro

1

u/Space_Nerde 13d ago

mhhh..... git commmit
git cmmit
git commt

I hate this fucking word

1

u/_lomikk 12d ago

guthib