diff --git a/README.md b/README.md index 2c67ee8..7e1af34 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,11 @@ # Lean A minimal Fish theme based on [Powerlevel10k](https://github.com/romkatv/powerlevel10k/)'s lean style. + +# Install + +Run the install script: + +```sh +curl https://raw.githubusercontent.com/IlanCosman/lean/master/install.fish | fish +``` diff --git a/install.fish b/install.fish index 13474fa..4f4ff69 100644 --- a/install.fish +++ b/install.fish @@ -1,13 +1,23 @@ -# ------------------------Pwd------------------------ +#!/bin/bash +# -------------------Download Files------------------- +set fileDestination $__fish_config_dir/functions +set githubLocation "https://raw.githubusercontent.com/IlanCosman/lean/master/" + +wget -P $fileDestination $githubLocation/fish_prompt.fish +wget -P $fileDestination $githubLocation/lean_pwd.fish +wget -P $fileDestination $githubLocation/lean_git_prompt.fish + +# ----------------Set Theme Variables---------------- +# ---------------Pwd--------------- set -U fish_prompt_pwd_dir_length 0 set -U lean_shorten_pwd_margin 5 +set -U lean_color_prompt_character 5FD700 set -U lean_color_end_dirs 00AFFF set -U lean_color_mid_dirs 0087AF - -# ---------------------Git prompt--------------------- +# ------------Git prompt------------ set -U __fish_git_prompt_show_informative_status true set -U __fish_git_prompt_showstashstate true -# -------------Symbols------------- +# -------Symbols------- set -U __fish_git_prompt_char_stateseparator "" set -U __fish_git_prompt_char_cleanstate "" set -U __fish_git_prompt_char_upstream_ahead " ⇡" @@ -16,7 +26,7 @@ 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 " *" -# --------------Colors-------------- +# --------Colors-------- set -U __fish_git_prompt_color_branch 5FD700 set -U __fish_git_prompt_color_upstream 5FD700 set -U __fish_git_prompt_color_stagedstate D7AF00