Removed mac specific lazygit config

Can mac lazygit on mac work like other nix systems
This commit is contained in:
Evie Litherland-Smith 2023-01-10 12:26:46 +00:00
parent 740574a5c5
commit 911f28cc45

View file

@ -26,13 +26,14 @@ for FILE in config/*; do
done
# Mac specific lazygit setup (because of course)
if [ $machine == "Mac" ]
then
rm "$CONFIG_DIR/lazygit"
echo "Removed $CONFIG_DIR/lazygit"
if [ ! -e "$HOME/Library/Application Support/lazygit" ]
then
ln -s "$(readlink -f config/lazygit)" "$HOME/Library/Application Support/lazygit"
echo "$(readlink -f config/lazygit) -> $HOME/Library/Application Support/lazygit"
fi
fi
# UPDATE: not needed if XDG_CONFIG_HOME is set
# if [ $machine == "Mac" ]
# then
# rm "$CONFIG_DIR/lazygit"
# echo "Removed $CONFIG_DIR/lazygit"
# if [ ! -e "$HOME/Library/Application Support/lazygit" ]
# then
# ln -s "$(readlink -f config/lazygit)" "$HOME/Library/Application Support/lazygit"
# echo "$(readlink -f config/lazygit) -> $HOME/Library/Application Support/lazygit"
# fi
# fi