Minor edits

This commit is contained in:
Ilan Cosman 2020-04-16 02:15:34 -07:00
parent a2bbc7a0c8
commit 86cd04aa3f
4 changed files with 17 additions and 17 deletions

View File

@ -1,13 +1,13 @@
echo "Installing lean theme..."
# -----------------Download Functions-----------------
set tempDir "/tmp/lean_theme"
set -l tempDir "/tmp/lean_theme"
# Clone repository into $tempDir
if test -e $tempDir
rm -rf $tempDir
end
git clone -q https://github.com/IlanCosman/lean.git $tempDir
git clone -q --depth=1 https://github.com/IlanCosman/lean.git $tempDir
# Remove unnecessary files
rm "$tempDir/install.fish"

View File

@ -1,8 +1,8 @@
function lean_git_prompt
set gitPrompt (fish_git_prompt)
set -l gitPrompt (fish_git_prompt)
set gitPrompt (string replace "(" "" $gitPrompt)
set gitPrompt (string replace ")" "" $gitPrompt)
set -l gitPrompt (string replace "(" "" $gitPrompt)
set -l gitPrompt (string replace ")" "" $gitPrompt)
echo $gitPrompt
end

View File

@ -8,20 +8,20 @@ function lean_uninstall
# ---------------Erase Theme Variables---------------
# --------------Colors--------------
set vars $vars lean_green lean_light_blue lean_dark_blue lean_gold
set -l vars $vars lean_green lean_light_blue lean_dark_blue lean_gold
# ---------------Pwd---------------
set vars $vars fish_prompt_pwd_dir_length lean_shorten_pwd_margin
set -l vars $vars fish_prompt_pwd_dir_length lean_shorten_pwd_margin
# ------------Git prompt------------
set vars $vars __fish_git_prompt_show_informative_status __fish_git_prompt_showstashstate
set -l vars $vars __fish_git_prompt_show_informative_status __fish_git_prompt_showstashstate
# -------Symbols-------
set vars $vars __fish_git_prompt_char_stateseparator __fish_git_prompt_char_cleanstate
set vars $vars __fish_git_prompt_char_upstream_ahead __fish_git_prompt_char_upstream_behind
set vars $vars __fish_git_prompt_char_stagedstate __fish_git_prompt_char_dirtystate
set vars $vars __fish_git_prompt_char_untrackedfiles __fish_git_prompt_char_stashstate
set -l vars $vars __fish_git_prompt_char_stateseparator __fish_git_prompt_char_cleanstate
set -l vars $vars __fish_git_prompt_char_upstream_ahead __fish_git_prompt_char_upstream_behind
set -l vars $vars __fish_git_prompt_char_stagedstate __fish_git_prompt_char_dirtystate
set -l vars $vars __fish_git_prompt_char_untrackedfiles __fish_git_prompt_char_stashstate
# --------Colors--------
set vars $vars __fish_git_prompt_color_branch __fish_git_prompt_color_upstream
set vars $vars __fish_git_prompt_color_stagedstate __fish_git_prompt_color_dirtystate
set vars $vars __fish_git_prompt_color_untrackedfiles __fish_git_prompt_color_stashstate
set -l vars $vars __fish_git_prompt_color_branch __fish_git_prompt_color_upstream
set -l vars $vars __fish_git_prompt_color_stagedstate __fish_git_prompt_color_dirtystate
set -l vars $vars __fish_git_prompt_color_untrackedfiles __fish_git_prompt_color_stashstate
for var in $vars
set -e $var

View File

@ -28,6 +28,6 @@ function user_ask --argument-names question options
end
end
function _indexMinusOne
echo (math (contains -i $argv[1] $argv[2..-1])-1)
function _indexMinusOne --argument-names item
echo (math (contains -i $item $argv[2..-1])-1)
end