Set imalison@uber.com as git email automatically
This commit is contained in:
parent
d1fbd293d5
commit
4466d5d960
@ -46,3 +46,17 @@ add_to_path "$HOME/bin" --before
|
|||||||
alias land_current='arc land $(git which-branch)'
|
alias land_current='arc land $(git which-branch)'
|
||||||
|
|
||||||
alias kill_h_forward='ps aux | grep ssh | grep 21300 | get_cols 2 | xargs kill -9'
|
alias kill_h_forward='ps aux | grep ssh | grep 21300 | get_cols 2 | xargs kill -9'
|
||||||
|
|
||||||
|
autoload -U add-zsh-hook
|
||||||
|
|
||||||
|
add-zsh-hook precmd uber_set_user_email_to_imalison
|
||||||
|
|
||||||
|
function uber_set_user_email_to_imalison {
|
||||||
|
if in_git_directory;
|
||||||
|
then
|
||||||
|
if [[ "$(git config remote.origin.url)" == *"uber"* ]]
|
||||||
|
then
|
||||||
|
git config user.email "imalison@uber.com"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user