/usr/bin/env: ‘node’: No such file or directory
At the start of a Fish Shell, by default it doesn't source nvm to preserve speed.
=> By default, $PATH
don't have /bin
directory /home/darkswordman/.nvm/versions/node/v18.16.0/bin
Since there are programs, plugins (e.g. plugins in SublimeLinter), sometimes they need to know where node is to run some node command.
Since we only source NVM when we use one of the aliases (function aliases, NOT binary aliases), and these function aliases only exists in Fish Shell.
Check your Model Explorer, there's a high chance that your root is filled with model elements from various diagram and package. By default VP will load all of root's child, except Models which are loaded when used.
=> Solution: Try to put all of them into 1 Model (this Model is added to the root)
function NAME [OPTIONS]; BODY; end
-a or --argument-names NAMES
: assign the names for each argument passed into function, there are the same arguments given in $argv
-d or --description DESCRIPTION
: specify a short description.
-e or --on-event EVENT_NAME
: run when EVENT_NAME is emmited. Actually, Fish shell emits the EVENT_NAME, which (EVENT_NAME) is binded to a function that use --on-event EVENT_NAME
option, which (the function) is executed.
sed
take inputs from a file or stdin, which means you can pipingsed ' output of other commands to sed
sed
edits line-by-line and in a non-interactive way, that means all editing decisions are determined before running the command.
sed [options] command [file-to-edit]
sed 'p' BSD
Inside ~/.config/fish/fish_variables
*Do not edit this file directly, as your edits may be overwritten.
=> Instead, edit the variables through fish scripts or by using fish interactively.
*Do not append to universal variables in config.fish
, because these variables will then get longer with each new shell instance.