my_config/add_nemo_config

13 行
311 B
Bash
実行ファイル

#!/bin/zsh
#
SCRIPTPATH="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
if [[ (-e ~/.nemo.json) ]]; then
echo "A nemo configuration already exists (~/.nemo.json)"
echo "Remove this configuration and start the script again"
else
echo "Creating link"
ln -vs $SCRIPTPATH/.nemo.json ~/
fi