My custom dotfiles powered by RCM.
mkrc [-t] <[file|dir]-path>
: move to~/.dotfiles
dir and create a symbolic to currentlsrc
: list all hosting dotfilesrcup [-t <tag-name>]
: deploy dotfiles
You can add custom functions to zsh_functions
directory and it will be loaded automatically.
The autoload code is in zshrc
file.
# custom functions
function load_fns() {
function_dir="$HOME/.zsh_functions"
fpath=($function_dir $fpath)
for function_file in $function_dir/*; do
function_name=$(basename $function_file)
autoload -Uz $function_name
done
}
load_fns
You can use functions like this:
# note the function name must be the same with file name
alias gcl='git_clean_current_branch'