mirror of
https://github.com/IlanCosman/tide.git
synced 2024-09-19 05:09:25 +03:00
Add version flag to tide command
This commit is contained in:
parent
8d1b4de83c
commit
45dfdd62d8
@ -1,4 +1,12 @@
|
||||
function tide -a subcommand
|
||||
function tide
|
||||
argparse 'v/version' -- $argv
|
||||
set -l subcommand $argv[1]
|
||||
|
||||
if set -q _flag_version
|
||||
printf '%s\n' $_tide_version
|
||||
return 0
|
||||
end
|
||||
|
||||
set -l tideSubcommand "tide_$subcommand"
|
||||
set -l tideCommands (basename -a -s '.fish' $_tide_dir/functions/*)
|
||||
|
||||
|
@ -7,6 +7,7 @@ function _set_tide_defaults
|
||||
set -l tideColorDarkerGreen 5FAF00
|
||||
|
||||
# ---------------General Theme Variables---------------
|
||||
_set _tide_version 1.3.0
|
||||
_set _tide_dir "$__fish_config_dir/tide_theme"
|
||||
_set tide_newline 'true'
|
||||
# --------------Colors--------------
|
||||
|
Loading…
Reference in New Issue
Block a user