- Execute alias
- Pick and execute an alias
- Add alias
- Delete alias
- List aliases
- Print an alias instead of executing it
- Clear the command cache
-
pls buildExecutes the command associated with the alias 'build'.
-
pls deployExecutes the command associated with the alias 'deploy'.
ℹ️ This command uses fzf when you have it installed. If you don't, it uses a fallback picker instead.
-
pls pick_aliasLaunches an interactive prompt to select an alias to execute.
-
pls pEquivalent to the above command.
-
plsEquivalent to the above command.
ℹ️ Note that adding and deleting aliases through the CLI is optional, as the pls files use an easily modifiable YAML format.
-
pls -a build -c 'npm run build' -s lAdds an alias 'build' that runs a single-line command to the closest pls file (except the global file).
-
pls test -ac 'echo hello\necho world!' -s gAdds an alias 'hello' that runs a multi-line command to the global pls file.
-
pls -a my_name -c 'echo "My name is $1"' -s hAdds an alias 'foo' that runs a parameterized command and stores it in the pls file in the current directory. The command can be run with 'pls my_name '.
ℹ️ Note that adding and deleting aliases through the CLI is optional, as the pls files use an easily modifiable YAML format.
-
pls -d build -s lRemoves the entry for alias 'build' from the closest local file.
-
pls deploy -ds gRemoves the entry for alias 'deploy' from the global file.
-
pls -d foo -s hRemoves the entry for alias 'foo' from the file in the current directory.
-
pls -lLists all aliases available for invocation in the current directory.
-
pls -ls gLists all the aliases listed in the global file.
-
pls -lp -s gLists all the aliases listed in the global file, and additionally show the command associated with each alias.
-
pls -lps gEquivalent to the above command.
-
pls build -pPrints the command associated with the alias 'build'.
-
pls deploy -pPrints the command associated with the alias 'deploy'.
-
pls --clear-cacheClears the cache of all executed commands.