mirror of
https://github.com/IlanCosman/tide.git
synced 2024-12-25 13:06:32 +03:00
Minor edits
This commit is contained in:
parent
a2bbc7a0c8
commit
86cd04aa3f
@ -1,13 +1,13 @@
|
|||||||
echo "Installing lean theme..."
|
echo "Installing lean theme..."
|
||||||
|
|
||||||
# -----------------Download Functions-----------------
|
# -----------------Download Functions-----------------
|
||||||
set tempDir "/tmp/lean_theme"
|
set -l tempDir "/tmp/lean_theme"
|
||||||
|
|
||||||
# Clone repository into $tempDir
|
# Clone repository into $tempDir
|
||||||
if test -e $tempDir
|
if test -e $tempDir
|
||||||
rm -rf $tempDir
|
rm -rf $tempDir
|
||||||
end
|
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
|
# Remove unnecessary files
|
||||||
rm "$tempDir/install.fish"
|
rm "$tempDir/install.fish"
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
function lean_git_prompt
|
function lean_git_prompt
|
||||||
set gitPrompt (fish_git_prompt)
|
set -l gitPrompt (fish_git_prompt)
|
||||||
|
|
||||||
set gitPrompt (string replace "(" "" $gitPrompt)
|
set -l gitPrompt (string replace "(" "" $gitPrompt)
|
||||||
set gitPrompt (string replace ")" "" $gitPrompt)
|
set -l gitPrompt (string replace ")" "" $gitPrompt)
|
||||||
|
|
||||||
echo $gitPrompt
|
echo $gitPrompt
|
||||||
end
|
end
|
@ -8,20 +8,20 @@ function lean_uninstall
|
|||||||
|
|
||||||
# ---------------Erase Theme Variables---------------
|
# ---------------Erase Theme Variables---------------
|
||||||
# --------------Colors--------------
|
# --------------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---------------
|
# ---------------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------------
|
# ------------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-------
|
# -------Symbols-------
|
||||||
set vars $vars __fish_git_prompt_char_stateseparator __fish_git_prompt_char_cleanstate
|
set -l 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 -l 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 -l 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_untrackedfiles __fish_git_prompt_char_stashstate
|
||||||
# --------Colors--------
|
# --------Colors--------
|
||||||
set vars $vars __fish_git_prompt_color_branch __fish_git_prompt_color_upstream
|
set -l 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 -l 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_untrackedfiles __fish_git_prompt_color_stashstate
|
||||||
|
|
||||||
for var in $vars
|
for var in $vars
|
||||||
set -e $var
|
set -e $var
|
||||||
|
@ -28,6 +28,6 @@ function user_ask --argument-names question options
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function _indexMinusOne
|
function _indexMinusOne --argument-names item
|
||||||
echo (math (contains -i $argv[1] $argv[2..-1])-1)
|
echo (math (contains -i $item $argv[2..-1])-1)
|
||||||
end
|
end
|
Loading…
Reference in New Issue
Block a user