Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@AleCx04 I have to glue two post-its on my computer and it takes me about two days to change my habit. But it is worth it :D
-
@AI-Overlord dude just get on zsh, the git plugin has it all setup and has some awesome defaults...
-
@AleCx04 what is there to remember? most git aliases are the first letter of each "word" of the command, no need to remember anything...
-
🤷♂️ i would just rather remember the actual name of the command and type it than do aliases.
If he digs it i i ain't got anything against it. But it just add shit to the "stuff to remember" imo<-- read as MINE -
@AleCx04 oh i see,
i use zsh which expands aliases on <space>, so you can know what is it that you're going to run.
but i can see the problem you mentioned happening with bash, which doesn't expand aliases, or does it? -
I have added alias sourcetree='open -a SourceTree'
So I can simply open any git project by simply
sourcetree ~/someDirectorty -
I just want to tell you about global gitignores.
```
git config --global core.excludesFile ~/.global_gitignore
echo ".idea" > ~/.global_gitignore
``` -
If you're using oh-my-zsh, there's an amazing plugin called alias-tips. It'll print the alias of the command you just used, if one exists
Related Rants
Enough is enough! I can't do it anymore!
...
alias pm='python manage.py'
alias ga='git add .'
alias gc='git commit -a'
alias gi='git init && touch .gitignore && printf ".idea \n venv \n node_modules \n out \n *.iml \n *.log \n build \n target" > .gitignore'
alias gp='git push'
alias gps='git push --set-upstream origin master'
alias gr='git remote add origin'
...
Much better :D
random
.bashrc
git
python