updates: add error handling to p10k update
This commit is contained in:
parent
fadea71978
commit
df0c4bfc16
1 changed files with 5 additions and 1 deletions
|
@ -5,5 +5,9 @@
|
|||
|
||||
# [3-18-22] Move Powerlevel 10k config file out of home directory
|
||||
if [ -f ~/.p10k.zsh ] && ! [ -f "$P10K_CONFIG_LOCATION" ]; then
|
||||
mv ~/.p10k.zsh "$P10K_CONFIG_LOCATION"
|
||||
if mv ~/.p10k.zsh "$P10K_CONFIG_LOCATION"; then
|
||||
echo "Update: Powerlevel 10k config file moved to $P10K_CONFIG_LOCATION"
|
||||
else
|
||||
echo "Update: Error: failed to move Powerlevel 10k config file to $P10K_CONFIG_LOCATION"
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue