fish-scripts
Some fish function scripts I am using personally.
Content
Including commands:
- , - ls -lphG
- ,, - ls -alphG
- fish_prompt - Very simple fish prompt
- cdnow - Interactive cd command for predefined shortcut paths
- cdmk - Interactive cd command for marked paths
- mkcd - A shortcut command to mark current path
cdnow
This command shows a list of predefined shorcut paths for you to select, or you can directly pass shortcut in commandline for quick switch. Use cdnow -e to edit the config file to add predefined shortcut path as you need.
Normally, I add current project root path to config file to quickly jump to project I am working on.
Note: Using this command will save config on ~/.config/zqcd/ folder, and create $ZQCD_cdnow global variable.
cdmk
This command can 'mark' a path, then you can quick jump back to marked paths using shortcut or select the shortcut in interactive mode. Use mkcd or cdmk -a to mark current path.
You can also use $cdmk[index] to reference the marked path in command line.
Normally, I use it to switch back and forth among several related paths for copying or comparison.
Note: Using this command will save config on ~/.config/zqcd/ folder, and create $CDMK global variable (variable name can be changed).
Installation
Put all files into ~/.config/fish/ folder or add this ./functions folder location to $fish_function_path environment variable.
Composer
Sonicfly, a.k.a Zkk
License
Project is published under FreeBSD license.