Adding git to status (#191)
* added git.sh file * added instrucctions to README.md * instruccions typo corrections * Customize git module and instrucctions * Correction for Shellcheck / Shellcheck (pull_request) test. added escape caracters \ in n git.sh script * Rename the module to gitmux * README.md corrections * README.md typo corrections
This commit is contained in:
parent
5ed4e8a6a2
commit
b26eb2fa6d
2 changed files with 34 additions and 0 deletions
14
status/gitmux.sh
Normal file
14
status/gitmux.sh
Normal file
|
@ -0,0 +1,14 @@
|
|||
# Requires https://github.com/arl/gitmux
|
||||
|
||||
show_gitmux() {
|
||||
local index icon color text module
|
||||
|
||||
index=$1
|
||||
icon="$(get_tmux_option "@catppuccin_gitmux_icon" "")"
|
||||
color="$(get_tmux_option "@catppuccin_gitmux_color" "$thm_green")"
|
||||
text="$(get_tmux_option "@catppuccin_gitmux_text" "#(gitmux \"#{pane_current_path}\")")"
|
||||
|
||||
module=$( build_status_module "$index" "$icon" "$color" "$text" )
|
||||
|
||||
echo "$module"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue