tide/install.fish

43 lines
1.6 KiB
Fish
Raw Normal View History

2020-04-03 03:12:55 +03:00
echo "Installing lean theme..."
# -------------------Download Functions-------------------
set fns fish_prompt lean_pwd lean_git_prompt
set fishFnsDir "$__fish_config_dir/functions"
set ghubFnsDir "https://raw.githubusercontent.com/IlanCosman/lean/master/functions"
2020-04-03 02:30:40 +03:00
for fn in $fns
wget -q -P $fishFnsDir "$ghubFnsDir/$fn.fish"
end
2020-04-03 02:30:40 +03:00
# ----------------Set Theme Variables----------------
# --------------Colors--------------
set -U lean_green 5FD700
set -U lean_light_blue 00AFFF
set -U lean_dark_blue 0087AF
set -U lean_gold D7AF00
2020-04-03 02:30:40 +03:00
# ---------------Pwd---------------
2020-04-03 01:39:10 +03:00
set -U fish_prompt_pwd_dir_length 0
set -U lean_shorten_pwd_margin 5
2020-04-03 02:30:40 +03:00
# ------------Git prompt------------
2020-04-03 01:39:10 +03:00
set -U __fish_git_prompt_show_informative_status true
set -U __fish_git_prompt_showstashstate true
2020-04-03 02:30:40 +03:00
# -------Symbols-------
2020-04-03 01:39:10 +03:00
set -U __fish_git_prompt_char_stateseparator ""
set -U __fish_git_prompt_char_cleanstate ""
set -U __fish_git_prompt_char_upstream_ahead " ⇡"
set -U __fish_git_prompt_char_upstream_behind " ⇣"
set -U __fish_git_prompt_char_stagedstate " +"
set -U __fish_git_prompt_char_dirtystate ' !'
set -U __fish_git_prompt_char_untrackedfiles ' ?'
set -U __fish_git_prompt_char_stashstate " *"
2020-04-03 02:30:40 +03:00
# --------Colors--------
set -U __fish_git_prompt_color_branch $lean_green
set -U __fish_git_prompt_color_upstream $lean_green
set -U __fish_git_prompt_color_stagedstate $lean_gold
set -U __fish_git_prompt_color_dirtystate $lean_gold
set -U __fish_git_prompt_color_untrackedfiles $lean_light_blue
set -U __fish_git_prompt_color_stashstate $lean_green
2020-04-03 03:12:55 +03:00
set_color $lean_green
echo "Lean theme installed! Restart fish to see your new prompt."
set_color $fish_color_normal