Update plugins to new config file syntax.

Ceda EI 2020-01-19 15:35:07 +05:30
parent c56f54304b
commit 34657cecdc
14 changed files with 23 additions and 23 deletions

@ -1,8 +1,8 @@
# Battery
+ Plugin Name: `battery`
+ Config Variables
+ `WISH_BATTERY_ID`: ID of Battery to check. Default: `BAT0`
+ `WISH_BATTERY_CHARGING`: Symbol while the battery is charging. Default: ϟ
+ `WISH_BATTERY_DISCHARGING`: Symbol while the battery is discharging. Default: ⏚
+ Config keys
+ `id`: ID of Battery to check. Default: `BAT0`
+ `charging`: Symbol while the battery is charging. Default: ϟ
+ `discharging`: Symbol while the battery is discharging. Default: ⏚

@ -1,5 +1,5 @@
# Background Jobs
+ Plugin Name: `bg_jobs`
+ Config Variables
+ Config keys
+ `WISH_BG_JOBS_SUFFIX`: Suffix to add to number of background jobs. Default: &

@ -1,5 +1,5 @@
# Custom Text
+ Plugin Name: `custom_text`
+ Config Variables
+ Config keys
+ `WISH_CUSTOM_TEXT`: Custom Text to display.

@ -1,5 +1,5 @@
# Date
+ Plugin Name: `date`
+ Config Variables
+ `WISH_DATE_FORMAT`: set the date format. Refer to `FORMAT` section of `man date` for more details. Default: `%F %T`.
+ Config keys
+ `format`: set the date format. Refer to `FORMAT` section of `man date` for more details. Default: `%F %T`.

@ -1,5 +1,5 @@
# Exit Code
+ Plugin Name: `exit_code`
+ Config Variables
+ Config keys
+ None

@ -1,7 +1,7 @@
# Exit Code Smiley
+ Plugin Name: `exit_code_smiley`
+ Config Variables
+ Config keys
+ `WISH_EXIT_CODE_SMILEY_PASS`: Text to show when the last command ran successfully. Default: `:)`
+ `WISH_EXIT_CODE_SMILEY_FAIL`: Text to show when the last command failed. Default: `:(`
+ `WISH_EXIT_CODE_SMILEY_HIDE_ON_PASS`: Whether to hide the output if command executes successfully. Default: 0

@ -1,5 +1,5 @@
# Hostname
+ Plugin Name: `hostname`
+ Config Variables
+ Config keys
+ None

@ -1,4 +1,4 @@
# Newline
+ Plugin Name: `newline`
+ Config Variables
+ Config keys

@ -1,5 +1,5 @@
# Path
+ Plugin Name: `path`
+ Config Variables
+ `WISH_PATH_NO_WRITE_SUFFIX`: Suffix if the current path is not writeable. Default: ``
+ Config keys
+ `no_write_suffix`: Suffix if the current path is not writeable. Default: ``

@ -1,4 +1,4 @@
# Python Virtualenv
+ Plugin Name: `python_venv`
+ Config Variables
+ Config keys

@ -1,4 +1,4 @@
# Space
+ Plugin Name: `space`
+ Config Variables
+ Config keys

@ -1,5 +1,5 @@
# Tmux Detached Sessions
+ Plugin Name: `tmux`
+ Config Variables
+ `WISH_TMUX_SUFFIX`: suffix to add after number of detached sessions. Default: `d`
+ Config keys
+ `suffix`: suffix to add after number of detached sessions. Default: `d`

@ -1,4 +1,4 @@
# Username
+ Plugin Name: `username`
+ Config Variables
+ Config keys

@ -1,7 +1,7 @@
# Version Control System (Git)
+ Plugin Name: `vcs`
+ Config Variables
+ `WISH_VCS_GIT_SYMBOL`: Symbol to indicate that the current directory is a git repo. Default: 
+ `WISH_VCS_DEFAULT`: Symbol to display when the current directory is not a git repo. Default: $
+ `WISH_VCS_GIT_UNTRACKED_SYMBOL`: Symbol to show if the current git repo has untracked files. Default: ●
+ Config keys
+ `git_symbol`: Symbol to indicate that the current directory is a git repo. Default: 
+ `default`: Symbol to display when the current directory is not a git repo. Default: $
+ `git_untracked_symbol`: Symbol to show if the current git repo has untracked files. Default: ●