diff options
| author | Christoph Schlosser <christoph@linux.com> | 2025-06-18 23:25:01 +0200 |
|---|---|---|
| committer | Christoph Schlosser <christoph@linux.com> | 2025-06-18 23:25:01 +0200 |
| commit | 8123f77742589ea573ded3f50ab54ddc67aedd24 (patch) | |
| tree | db0daebfc585a6a17f0f57485663547e5b6065c9 /functions | |
| parent | aad821addea086bb984a6d415d917ad814099928 (diff) | |
| download | c-star-8123f77742589ea573ded3f50ab54ddc67aedd24.tar.gz | |
Rename prompt specific variables to cstar
Diffstat (limited to 'functions')
| -rw-r--r-- | functions/fish_prompt.fish | 8 | ||||
| -rw-r--r-- | functions/fish_right_prompt.fish | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/functions/fish_prompt.fish b/functions/fish_prompt.fish index 832d8e8..cde92fd 100644 --- a/functions/fish_prompt.fish +++ b/functions/fish_prompt.fish @@ -1,8 +1,8 @@ -function c_star_segment_divide_left - set -l from_var "c_star_$argv[1]" +function cstar_segment_divide_left + set -l from_var "cstar_$argv[1]" set -l from_name "$from_var""_bg" set -l from $$from_name - set -l to_var "c_star_$argv[2]" + set -l to_var "cstar_$argv[2]" set -l to_name "$to_var""_bg" set -l to $$to_name @@ -16,5 +16,5 @@ function c_star_segment_divide_left end function fish_prompt --description "The left side of the C-Star prompt" - echo -e "$c_star_user$c_star_host$(c_star_segment_divide_left user pwd)$c_star_pwd$(c_star_segment_divide_left pwd git)$c_star_git$(c_star_segment_divide_left git normal)\n$c_star_user_marker$(c_star_segment_divide_left user_marker normal) " + echo -e "$cstar_user$cstar_host$(cstar_segment_divide_left user pwd)$cstar_pwd$(cstar_segment_divide_left pwd git)$cstar_git$(cstar_segment_divide_left git normal)\n$cstar_user_marker$(cstar_segment_divide_left user_marker normal) " end
\ No newline at end of file diff --git a/functions/fish_right_prompt.fish b/functions/fish_right_prompt.fish index 89cc89d..635a389 100644 --- a/functions/fish_right_prompt.fish +++ b/functions/fish_right_prompt.fish @@ -1,8 +1,8 @@ -function c_star_segment_divide_right - set -l from_var "c_star_$argv[1]" +function cstar_segment_divide_right + set -l from_var "cstar_$argv[1]" set -l from_name "$from_var""_bg" set -l from $$from_name - set -l to_var "c_star_$argv[2]" + set -l to_var "cstar_$argv[2]" set -l to_name "$to_var""_bg" set -l to $$to_name @@ -16,5 +16,5 @@ function c_star_segment_divide_right end function fish_right_prompt --description "The right side of the C-Star prompt" - echo -e "$(c_star_segment_divide_right command_time normal)$c_star_command_time$(c_star_segment_divide_right datetime command_time)$c_star_datetime" + echo -e "$(cstar_segment_divide_right command_time normal)$cstar_command_time$(cstar_segment_divide_right datetime command_time)$cstar_datetime" end
\ No newline at end of file |