All Questions
5
questions
2
votes
2
answers
150
views
Create new set of aliases based on current set of aliases (eg. gst -> dst)?
I'm using git aliases from zsh plugins: https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/git
So it has git aliases like:
gst # git status
ga # git add
gc "commit" # git commit -v "...
2
votes
2
answers
748
views
How to add an alias for 'git add **/'
I can't seem to add an alias for git add **/
I think those two asterisks is causing an issue, or it could be that forward slash. How do I solve this?
So far I have tried
alias ga='git add **/'
When ...
0
votes
0
answers
90
views
Conditional Git alias within zsh: "parse error: condition expected: cd" [duplicate]
I'm trying to implement a simple stack of git-related aliases for my personal dotfiles.
alias gs="[[ $(git rev-parse --is-inside-work-tree &> /dev/null) ]] || cd $D && git status -...
0
votes
1
answer
535
views
Using zsh alias to quickly clone a git repository with custom folder name
I want an alias shortcut to achieve the following:
Clone a github repository with a custom folder name
Open it in my fav text editor (atom)
I currently use this inside ~/.zshrc:
alias quickstart="...
3
votes
1
answer
5k
views
How to create an alias for two Git commands that use a parameter? [duplicate]
I regularly have to delete a local and remote Git branch. Therefore, I run the following commands:
$ git branch -d feature-branch
$ git push --delete origin feature-branch
Since I mostly execute ...