Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
edwmurph committed Nov 26, 2023
1 parent a315be1 commit 8860002
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
4 changes: 3 additions & 1 deletion zsh/aliases.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ alias gd="git diff ':!*package-lock.json' ':!*pnpm-lock.yaml' ':!*yarn.lock'"
alias gds="git diff --staged ':!*package-lock.json' ':!*pnpm-lock.yaml' ':!*yarn.lock'"
alias gdd="git diff HEAD^ -- ':!*package-lock.json' ':!*pnpm-lock.yaml' ':!*yarn.lock'"
alias gpod="git push origin --delete"
alias gcm="git checkout master"
alias gcm="git checkout main 2>/dev/null || git checkout master 2>/dev/null || echo 'no main or master branch found'"
alias gbda="git branch | grep -v main | xargs git branch -d"
alias gbDa="git branch | grep -v main | xargs git branch -D"

# navigation
alias se="goto ~/.secrets"
Expand Down
3 changes: 0 additions & 3 deletions zsh/context.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ function context_switch() {
# autoswitch_conda_env
context=$(echo $PWD | sed -E 's/^\/Users\/emurphy\/code\/([^/]+).*$/\1/')

git config --global user.name "edwmurph"
git config --global user.email [email protected]

unset SPACES_ACCESS_KEY_ID
unset SPACES_SECRET_ACCESS_KEY
unset DIGITALOCEAN_ACCESS_TOKEN
Expand Down
1 change: 1 addition & 0 deletions zsh/env.zsh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export PATH=$PATH:/Users/emurphy/Library/Python/3.8/bin
export PATH="${KREW_ROOT:-$HOME/.krew}/bin:$PATH"
export GPG_TTY=$(tty)
export FZF_DEFAULT_COMMAND='ag --hidden --ignore .git --ignore dist --ignore .aws-sam --ignore coverage -g ""'
export BAT_THEME='TwoDark'
Expand Down
6 changes: 6 additions & 0 deletions zsh/init/init.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,9 @@ function goto() {

# initialize on new shell
goto

git config --global user.name "edwmurph"
git config --global user.email [email protected]
git config --global push.default current
git config --global --add --bool push.autoSetupRemote true
git config --global core.excludesfile ~/.gitignore

0 comments on commit 8860002

Please sign in to comment.