{"action":"created","issue":{"url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/issues/3682","labels_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/issues/3682/labels{/name}","comments_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/issues/3682/comments","events_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/issues/3682/events","html_url":"https://github.com/robbyrussell/oh-my-zsh/issues/3682","id":60647302,"number":3682,"title":"'gap' is a program","user":{"login":"ChrisJefferson","id":811527,"avatar_url":"https://avatars.githubusercontent.com/u/811527?v=3","gravatar_id":"","url":"https://api.github.com/users/ChrisJefferson","html_url":"https://github.com/ChrisJefferson","followers_url":"https://api.github.com/users/ChrisJefferson/followers","following_url":"https://api.github.com/users/ChrisJefferson/following{/other_user}","gists_url":"https://api.github.com/users/ChrisJefferson/gists{/gist_id}","starred_url":"https://api.github.com/users/ChrisJefferson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChrisJefferson/subscriptions","organizations_url":"https://api.github.com/users/ChrisJefferson/orgs","repos_url":"https://api.github.com/users/ChrisJefferson/repos","events_url":"https://api.github.com/users/ChrisJefferson/events{/privacy}","received_events_url":"https://api.github.com/users/ChrisJefferson/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-03-11T11:53:54Z","updated_at":"2015-06-10T13:59:24Z","closed_at":"2015-03-11T17:57:34Z","body":"Since installing oh-my-zsh, I kept finding that running 'gap' would start some weird git related thing. \r\n\r\nI have now discovered this is a git alias added by the git package. Perhaps if there is a program called 'gap', that should be used instead of the alias? Or choose a different one?"},"comment":{"url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/issues/comments/110764926","html_url":"https://github.com/robbyrussell/oh-my-zsh/issues/3682#issuecomment-110764926","issue_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/issues/3682","id":110764926,"user":{"login":"blueyed","id":9766,"avatar_url":"https://avatars.githubusercontent.com/u/9766?v=3","gravatar_id":"","url":"https://api.github.com/users/blueyed","html_url":"https://github.com/blueyed","followers_url":"https://api.github.com/users/blueyed/followers","following_url":"https://api.github.com/users/blueyed/following{/other_user}","gists_url":"https://api.github.com/users/blueyed/gists{/gist_id}","starred_url":"https://api.github.com/users/blueyed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blueyed/subscriptions","organizations_url":"https://api.github.com/users/blueyed/orgs","repos_url":"https://api.github.com/users/blueyed/repos","events_url":"https://api.github.com/users/blueyed/events{/privacy}","received_events_url":"https://api.github.com/users/blueyed/received_events","type":"User","site_admin":false},"created_at":"2015-06-10T13:59:24Z","updated_at":"2015-06-10T13:59:24Z","body":"As @ChrisJefferson suggested, you could use something like:\r\n\r\nif [[ -z $commands[gap] ]]; then\r\n    alias gap=\"git add -p\"\r\nfi"}}