modify
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
current_dir=$(dirname $(realpath "$0"))
|
||||
starship_config_file="$HOME/.config/starship.toml"
|
||||
|
||||
if [[ $(file $starship_config_file) ]]; then
|
||||
if [ -f $starship_config_file ]; then
|
||||
if $(file "$starship_config_file" | grep -q "symbolic link") ; then
|
||||
if [[ $(readlink "$starship_config_file") != $(realpath "$current_dir/../starship/starship.toml") ]]; then
|
||||
ln -sf "$current_dir/../starship/starship.toml" "$starship_config_file"
|
||||
|
@@ -23,8 +23,10 @@ if ! command -v zoxide >/dev/null 2>&1; then
|
||||
fi
|
||||
|
||||
if ! command -v python >/dev/null 2>&1; then
|
||||
echo "Python is not installed."
|
||||
exit 1
|
||||
if ! command -v python3 >/dev/null 2>&1; then
|
||||
echo "Python is not installed."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
if ! command -v starship >/dev/null 2>&1; then
|
||||
|
Reference in New Issue
Block a user