{"action":"created","issue":{"url":"https://api.github.com/repos/fish-shell/fish-shell/issues/3446","repository_url":"https://api.github.com/repos/fish-shell/fish-shell","labels_url":"https://api.github.com/repos/fish-shell/fish-shell/issues/3446/labels{/name}","comments_url":"https://api.github.com/repos/fish-shell/fish-shell/issues/3446/comments","events_url":"https://api.github.com/repos/fish-shell/fish-shell/issues/3446/events","html_url":"https://github.com/fish-shell/fish-shell/issues/3446","id":182342774,"number":3446,"title":"abbr should allow setting to global variable","user":{"login":"maletor","id":138785,"avatar_url":"https://avatars.githubusercontent.com/u/138785?v=3","gravatar_id":"","url":"https://api.github.com/users/maletor","html_url":"https://github.com/maletor","followers_url":"https://api.github.com/users/maletor/followers","following_url":"https://api.github.com/users/maletor/following{/other_user}","gists_url":"https://api.github.com/users/maletor/gists{/gist_id}","starred_url":"https://api.github.com/users/maletor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maletor/subscriptions","organizations_url":"https://api.github.com/users/maletor/orgs","repos_url":"https://api.github.com/users/maletor/repos","events_url":"https://api.github.com/users/maletor/events{/privacy}","received_events_url":"https://api.github.com/users/maletor/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/fish-shell/fish-shell/labels/needs-docs","name":"needs-docs","color":"fef2c0"},{"url":"https://api.github.com/repos/fish-shell/fish-shell/labels/question","name":"question","color":"f9d0c4"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-11T18:46:35Z","updated_at":"2016-10-11T21:56:14Z","closed_at":null,"body":"I've been using `abbr` instead of `alias` for a good while now and it's been a wonderful feature. But, I must mention one flaw with the way the variable is set.\r\n\r\nWith `alias` it was very easy to control the scope of the alias, essentially it was a function so it was neither global or universal.\r\n\r\nWith `abbr` it sets a universal `fish_user_abbreviations`, but it is much harder to manage since `abbr` hardcodes it as such and in turn it is hard to edit on it's own so you wouldn't want to manage a `fish_user_abbreviations` global in `config.fish`, especially if adding ad hoc abbrs go into universal variables no matter what.\r\n\r\nIt's possible this is a broader issue of mine with the way way universal variables work in conjunction with trying to preserve a dotfile for fish configuration to share between computers. The way the universal variables are mapped by MAC address indicates they should not be checked into a dotfile git repository which leads to people setting global variables in `config.fish`, which in turn slows down startup because now these are run at each new setup in addition to the universal variables. I do not believe that setting a flag for whether the global file has been run in a universal variable is a good experience for new people to fish.\r\n\r\nI guess my propsal would be to allow `abbr` to have an option to allow setting it as a global and to also read from there first. Open to thoughts and suggestions though. This way I can keep it out of my universal file entirely since it's not universal enough. My config.fish is really my universal variables since that one is actually shared between all my computers."},"comment":{"url":"https://api.github.com/repos/fish-shell/fish-shell/issues/comments/253058709","html_url":"https://github.com/fish-shell/fish-shell/issues/3446#issuecomment-253058709","issue_url":"https://api.github.com/repos/fish-shell/fish-shell/issues/3446","id":253058709,"user":{"login":"krader1961","id":7545917,"avatar_url":"https://avatars.githubusercontent.com/u/7545917?v=3","gravatar_id":"","url":"https://api.github.com/users/krader1961","html_url":"https://github.com/krader1961","followers_url":"https://api.github.com/users/krader1961/followers","following_url":"https://api.github.com/users/krader1961/following{/other_user}","gists_url":"https://api.github.com/users/krader1961/gists{/gist_id}","starred_url":"https://api.github.com/users/krader1961/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krader1961/subscriptions","organizations_url":"https://api.github.com/users/krader1961/orgs","repos_url":"https://api.github.com/users/krader1961/repos","events_url":"https://api.github.com/users/krader1961/events{/privacy}","received_events_url":"https://api.github.com/users/krader1961/received_events","type":"User","site_admin":false},"created_at":"2016-10-11T21:56:14Z","updated_at":"2016-10-11T21:56:14Z","body":"See also issue #3049 where this question was discussed at length."}}
{"actor":{"display_login":"krader1961"}}