[Fish-users] A implementation of ${VAR:-1} like fallback default value

2013-11-16 Thread Leira Hua
Bash and zsh has this ${VAR:-1} easy way to set a default value, when $VAR is defined ${VAR:-1} will return the value of $VAR, and when $VAR is not defined, ${VAR:-1} will return the fallback default value -1, like: $ echo ${VAR:-1} -1 $ export VAR=15 $ echo ${VAR:-1} 15 This is very useful whe

Re: [Fish-users] Completion on alias

2013-11-12 Thread Leira Hua
Mandeep Sandhu writes: > > So this is basically looking for aliases created via git itself ('git config > alias.gco checkout' etc). > > To fix your issue, you either need to define an alias with git, or modify the > __fish_git_using_command function to check if the given command is a shell > al

Re: [Fish-users] Why autoloading function files can only contain the specified function definition only?

2013-11-11 Thread Leira Hua
George Waksman writes: > 2. autoloaded functions can call other autoloaded functions (double > underscore is typically used to denote "private" functions): > > file:__helper_function.fish > --- > function __helper_function --description "helper function" ># do something

[Fish-users] Completion on alias

2013-11-11 Thread Leira Hua
etion of the aliased command to the alias function, then solve this problem once and for all. Is it possible yet? Thanks, Leira Hua -- November Webinars for C, C++, Fortran Developers Accelerate application performance wi

[Fish-users] Why autoloading function files can only contain the specified function definition only?

2013-11-11 Thread Leira Hua
nction too, seems the only way to do that, is to put this tool function into config.fish, which lost the benefits of autoloading function. Is it possible to make this tool function an autoloading function, and make other autoloading functions dep