You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For user defined helpers I am thinking of supporting following:
Aliases
Aliases for defining / overriding functionality. When alias is used it does not get expanded and is saved into history as is.
Example:
(defaliasls"ls --color=auto")
Abbreviations
Abbreviations are similar to aliases but expand to underlying definition. Therefore autocomplete can work seamlessly and also full command is saved to history. Inspired by abbr in fish. See also discussion.
@4mitch Currently we load ~/.closhrc on startup so users will be able to put these kinds of definitions there. So you could say it is similar to Emacs init (from my limited understanding of Emacs).
For user defined helpers I am thinking of supporting following:
Aliases
Aliases for defining / overriding functionality. When alias is used it does not get expanded and is saved into history as is.
Example:
Abbreviations
Abbreviations are similar to aliases but expand to underlying definition. Therefore autocomplete can work seamlessly and also full command is saved to history. Inspired by abbr in fish. See also discussion.
Functions
Classic Clojure functions, already works.
Run in command line like:
(hello "World")
.Commands
Similar to functions, but can be executed like commands without parens. Related to builtin commands. Defining similar to defn:
Run in command line like:
hello World
. There should probably also be a way to promote existing function to a command.The text was updated successfully, but these errors were encountered: