Skip to content

Commit

Permalink
config.sh: small tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
ken-matsui committed Nov 27, 2024
1 parent 52dbe73 commit 994f0d6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions setup/common/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ backup_and_link() {
ln -s "$DOTSPATH/$1" "$TARGET"
}

if [ "$(uname)" = Darwin ]; then
OS_NAME="$(uname -s)"
if [ "$OS_NAME" = Darwin ]; then
# TARGET=$HOME/Library/Application Support/Code
backup_and_link .config/Code "$HOME/Library/Application Support"
elif [ "$(uname)" = Linux ]; then
elif [ "$OS_NAME" = Linux ]; then
# TARGET=$HOME/.config/Code
backup_and_link .config/Code
fi
Expand Down

0 comments on commit 994f0d6

Please sign in to comment.