mirror of
https://github.com/IlanCosman/tide.git
synced 2024-08-16 19:50:22 +03:00
Minor edits
This commit is contained in:
parent
d1d9a732e6
commit
e6d2c619bb
@ -42,7 +42,7 @@ function tide_test
|
||||
if set -q _flag_verbose
|
||||
cat $pending >>$passed
|
||||
else
|
||||
printf '%s\n' "$test - ✔" >>$passed
|
||||
printf '%s\n' "(✔) $test" >>$passed
|
||||
end
|
||||
else
|
||||
cat $pending >>$failed
|
||||
|
@ -11,22 +11,21 @@ function tide_actual_install
|
||||
printf '%s\n' 'Installing tide theme...'
|
||||
|
||||
# -----------------Download Files-----------------
|
||||
set -g tempDir '/tmp/tide_theme'
|
||||
|
||||
# Copy/clone repository into $tempDir
|
||||
set -lx tempDir '/tmp/tide_theme'
|
||||
if test -e $tempDir
|
||||
rm -rf $tempDir
|
||||
end
|
||||
|
||||
# Copy/clone repository into $tempDir
|
||||
if set -q _flag_local
|
||||
cp -rf "$location" "$tempDir"
|
||||
else
|
||||
git clone -q --depth 1 -b $location https://github.com/IlanCosman/tide.git $tempDir
|
||||
end
|
||||
|
||||
cp -r "$tempDir/completions" $__fish_config_dir
|
||||
cp -r "$tempDir/conf.d" $__fish_config_dir
|
||||
cp -r "$tempDir/functions" $__fish_config_dir
|
||||
cp -r "$tempDir/tide_theme" $__fish_config_dir
|
||||
for dir in completions conf.d functions tide_theme
|
||||
cp -r "$tempDir/$dir" $__fish_config_dir
|
||||
end
|
||||
|
||||
# --------------------Set Defaults--------------------
|
||||
_set_immutables
|
||||
@ -68,7 +67,6 @@ function tide_actual_install
|
||||
end
|
||||
|
||||
rm -rf $tempDir
|
||||
set -e tempDir
|
||||
end
|
||||
|
||||
function _set_immutables
|
||||
|
Loading…
Reference in New Issue
Block a user