updates: add update to replace profile
This commit is contained in:
parent
be3b7d0a73
commit
8620b11820
1 changed files with 11 additions and 0 deletions
|
@ -3,6 +3,8 @@
|
|||
# dotfiles. It is to be run after environment variables are set whenever the
|
||||
# shell starts, and should be compatible with standard `sh`.
|
||||
|
||||
set -ue
|
||||
|
||||
# [3-18-22] Move Powerlevel 10k config file out of home directory
|
||||
if [ -f ~/.p10k.zsh ] && ! [ -f "$P10K_CONFIG_LOCATION" ]; then
|
||||
if mv ~/.p10k.zsh "$P10K_CONFIG_LOCATION"; then
|
||||
|
@ -11,3 +13,12 @@ if [ -f ~/.p10k.zsh ] && ! [ -f "$P10K_CONFIG_LOCATION" ]; then
|
|||
echo "Update: Error: failed to move Powerlevel 10k config file to $P10K_CONFIG_LOCATION"
|
||||
fi
|
||||
fi
|
||||
|
||||
# [9-17-22] Prepare to replace symlink at ~/.profile with an actual file
|
||||
if [ -h ~/.profile ]; then
|
||||
if rm ~/.profile; then
|
||||
echo "Update: Symlink at ~/.profile was removed (to be replaced by real file)"
|
||||
else
|
||||
echo "Update: Error: Failed to remove symlink at ~/.profile for replacing with real file."
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue