Skip to content

Commit

Permalink
fix(zsh) fix git ignore alias
Browse files Browse the repository at this point in the history
  • Loading branch information
yanntheman committed May 9, 2023
1 parent 71acc9f commit 632e94d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .zshrc.alias
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ fi
a ytu='yarn test -u'

# Git
a quote='curl -s https://api.quotable.io/quotes/random | jq ".[].content"'
a quote="curl -s https://api.quotable.io/quotes/random | jq '.[].content,.[].author'"
a hh='yarn hardhat'
a gp='git push'
a gs='git stash save'
Expand All @@ -64,20 +64,19 @@ a grf='f() { git reset ${1} };f'
a gcommit-and-push='f() {git add -v ${1} && git commit --message="${2}" && git push};f'
a gmod='git fetch && git merge origin/develop'

a fix-gitignore='f() {
function fix-gitignore() {
git rm -r --cached .
git add .
git commit -m "fixed untracked files"
};
f'

# Github
function clone-rep() {
cd ~/dev/cloned
git clone ${1}
repo=`echo ${1} | cut -d / -f 5`
cd ${repo}
};
}

function clone-rep-and-install() {
cd ~/dev/cloned && gcl ${1}
Expand Down

0 comments on commit 632e94d

Please sign in to comment.