Added nvim / ghostty / starship config
Signed-off-by: Rack Lin <racklin@gmail.com>
This commit is contained in:
76
fish/completions/__gitnow_completions.fish
Normal file
76
fish/completions/__gitnow_completions.fish
Normal file
@@ -0,0 +1,76 @@
|
||||
source $__fish_data_dir/completions/git.fish
|
||||
|
||||
# Merge command
|
||||
|
||||
complete -f -x -c merge -a '(__fish_git_branches)'
|
||||
|
||||
complete -f -x -c merge \
|
||||
-s h -l help \
|
||||
-d "Show information about the options for this command"
|
||||
|
||||
complete -f -x -c merge \
|
||||
-s a -l abort \
|
||||
-d "Abort conflicted merge"
|
||||
|
||||
complete -f -x -c merge \
|
||||
-s c -l continue \
|
||||
-d "Continue merge"
|
||||
|
||||
# Move command
|
||||
|
||||
complete -f -x -c move -a '(__fish_git_branches)'
|
||||
|
||||
complete -f -x -c move \
|
||||
-s h -l help \
|
||||
-d "Show information about the options for this command"
|
||||
|
||||
complete -f -x -c move \
|
||||
-s n -l no-apply-stash \
|
||||
-a '(__fish_git_branches)' \
|
||||
-d "Switch to a local branch but without applying current stash"
|
||||
|
||||
complete -f -x -c move \
|
||||
-s u -l upstream \
|
||||
-a '(__fish_git_branches)' \
|
||||
-d "Fetch a remote branch and switch to it applying current stash"
|
||||
|
||||
|
||||
# Tag command
|
||||
|
||||
complete -f -x -c tag \
|
||||
-d "List all tags in a lexicographic order and treating tag names as versions"
|
||||
|
||||
complete -f -x -c tag -a '(__fish_git_tags)'
|
||||
|
||||
complete -f -x -c tag \
|
||||
-s h -l help \
|
||||
-d "Show information about the options for this command"
|
||||
|
||||
complete -f -x -c tag \
|
||||
-s l -l latest \
|
||||
-d "Show only the latest Semver release tag version (no suffixed ones or others)"
|
||||
|
||||
complete -f -x -c tag \
|
||||
-s x -l major \
|
||||
-d "Tag auto-incrementing a major version number"
|
||||
|
||||
complete -f -x -c tag \
|
||||
-s y -l minor \
|
||||
-d "Tag auto-incrementing a minor version number"
|
||||
|
||||
complete -f -x -c tag \
|
||||
-s z -l patch \
|
||||
-d "Tag auto-incrementing a patch version number"
|
||||
|
||||
# TODO: pre-release versions are not supported yet
|
||||
# complete -f -x -c tag \
|
||||
# -s a -l premajor \
|
||||
# -d "Tag auto-incrementing a premajor version number"
|
||||
|
||||
# complete -f -x -c tag \
|
||||
# -s b -l preminor \
|
||||
# -d "Tag auto-incrementing a preminor version number"
|
||||
|
||||
# complete -f -x -c tag \
|
||||
# -s c -l prepatch \
|
||||
# -d "Tag auto-incrementing a prepatch version number"
|
||||
7
fish/completions/fzf_configure_bindings.fish
Normal file
7
fish/completions/fzf_configure_bindings.fish
Normal file
@@ -0,0 +1,7 @@
|
||||
complete fzf_configure_bindings --no-files
|
||||
complete fzf_configure_bindings --long help --short h --description "Print help"
|
||||
complete fzf_configure_bindings --long directory --description "Change the key binding for searching directory"
|
||||
complete fzf_configure_bindings --long git_log --description "Change the key binding for searching git log"
|
||||
complete fzf_configure_bindings --long git_status --description "Change the key binding for searching git status"
|
||||
complete fzf_configure_bindings --long history --description "Change the key binding for searching history"
|
||||
complete fzf_configure_bindings --long variables --description "Change the key binding for searching variables"
|
||||
13
fish/completions/license.fish
Normal file
13
fish/completions/license.fish
Normal file
@@ -0,0 +1,13 @@
|
||||
complete -c license -f -n "__fish_use_subcommand" -a mit
|
||||
complete -c license -f -n "__fish_use_subcommand" -a gpl-3.0
|
||||
complete -c license -f -n "__fish_use_subcommand" -a gpl-2.0
|
||||
complete -c license -f -n "__fish_use_subcommand" -a agpl-3.0
|
||||
complete -c license -f -n "__fish_use_subcommand" -a unlicense
|
||||
complete -c license -f -n "__fish_use_subcommand" -a apache-2.0
|
||||
complete -c license -f -n "__fish_use_subcommand" -a epl-1.0
|
||||
complete -c license -f -n "__fish_use_subcommand" -a bsd-2-clause
|
||||
complete -c license -f -n "__fish_use_subcommand" -a mpl-2.0
|
||||
complete -c license -f -n "__fish_use_subcommand" -a bsd-3-clause
|
||||
complete -c license -f -n "__fish_use_subcommand" -a lgpl-3.0
|
||||
complete -c license -f -n "__fish_use_subcommand" -a lgpl-2.1
|
||||
complete -c license -f -n "__fish_use_subcommand" -a wtfpl
|
||||
3
fish/completions/replay.fish
Normal file
3
fish/completions/replay.fish
Normal file
@@ -0,0 +1,3 @@
|
||||
complete --command replay --no-files
|
||||
complete --command replay --exclusive --long version --description "Print version"
|
||||
complete --command replay --exclusive --long help --description "Print help"
|
||||
Reference in New Issue
Block a user