Skip to content

Instantly share code, notes, and snippets.

@mnewt
Created May 28, 2016 17:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mnewt/3e67565f182dda51d6032df57d6cce36 to your computer and use it in GitHub Desktop.
Save mnewt/3e67565f182dda51d6032df57d6cce36 to your computer and use it in GitHub Desktop.
add numerical value to variable, like +=
function plus_equals --no-scope-shadowing
set -l __fish_value $$argv[1]
set $argv[1] (math $__fish_value + $argv[2])
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment