{"action":"opened","issue":{"url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/issues/5515","repository_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh","labels_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/issues/5515/labels{/name}","comments_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/issues/5515/comments","events_url":"https://api.github.com/repos/robbyrussell/oh-my-zsh/issues/5515/events","html_url":"https://github.com/robbyrussell/oh-my-zsh/issues/5515","id":182025409,"number":5515,"title":"alias question","user":{"login":"michahell","id":225784,"avatar_url":"https://avatars.githubusercontent.com/u/225784?v=3","gravatar_id":"","url":"https://api.github.com/users/michahell","html_url":"https://github.com/michahell","followers_url":"https://api.github.com/users/michahell/followers","following_url":"https://api.github.com/users/michahell/following{/other_user}","gists_url":"https://api.github.com/users/michahell/gists{/gist_id}","starred_url":"https://api.github.com/users/michahell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michahell/subscriptions","organizations_url":"https://api.github.com/users/michahell/orgs","repos_url":"https://api.github.com/users/michahell/repos","events_url":"https://api.github.com/users/michahell/events{/privacy}","received_events_url":"https://api.github.com/users/michahell/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-10T14:14:00Z","updated_at":"2016-10-10T14:14:00Z","closed_at":null,"body":"I have this (very ugly) alias to just quickly show my local IP adresses:\r\n\r\n```bash\r\nalias localip=\"\r\nprintf '%s\\n' '========================';\r\nprintf '%s\\n' 'en0: \\\"$(ipconfig getifaddr en0)\\\"';;\r\nprintf '%s\\n' 'en4: \\\"$(ipconfig getifaddr en4)\\\"';\r\nprintf '%s\\n' '========================';\r\n\"\r\n```\r\n\r\nwhich is just an alias for executing the commands:\r\n\r\n```bash\r\n➔ ipconfig getifaddr en0\r\n➔ ipconfig getifaddr en4\r\n```\r\n\r\nSomehow, the alias does not update correctly when my IP address changes. It does report the correct IP addresses when I reload my shell. This leads me to think that there is some alias caching going on, somewhere? is it just regular terminal logic to do this, or is this something (oh-my-)ZSH does?"}}
{"actor":{"display_login":"michahell"}}