-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d91598f
commit 8d2ee0f
Showing
7 changed files
with
34 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
SRC="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | ||
CONF_PATH="${HOME}" | ||
|
||
lnx "${SRC}/.dir_colors" "${CONF_PATH}/.dir_colors" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
SRC="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | ||
CONF_PATH="${HOME}" | ||
# if [[ $(uname) = "Darwin" ]]; then | ||
# CONF_PATH="${HOME}" | ||
# fi | ||
mkdir -p "${CONF_PATH}" | ||
|
||
SELF_PATH="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | ||
|
||
__install_settings_file() { | ||
local cnf_file="${1}" | ||
local trg_file=${2:-${cnf_file}} | ||
|
||
local ORIGIN="${SELF_PATH}/${cnf_file}" | ||
local TARGET="${CONF_PATH}/${trg_file}" | ||
|
||
# if file exists, backup. | ||
[[ -f ${TARGET} ]] && [[ ! -L ${TARGET} ]] && mv "${TARGET}"{,.backup} | ||
|
||
# if link already exists, return. | ||
[[ -L ${TARGET} ]] && echo "Link for ${cnf_file} already exists" && return | ||
|
||
# install sym link | ||
echo -e "Linking \e[0;35m${ORIGIN}\e[0m -> \e[0;36m${TARGET}\e[0m" | ||
ln -s "${ORIGIN}" "${TARGET}" | ||
} | ||
|
||
__install_settings_file '.gitconfig' | ||
lnx "${SRC}/.gitconfig" "${CONF_PATH}/.gitconfig" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,7 @@ | ||
#!/usr/bin/env bash | ||
|
||
SRC="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | ||
CONF_PATH="${HOME}/.config" | ||
# if [[ $(uname) = "Darwin" ]]; then | ||
# CONF_PATH="${HOME}/.config" | ||
# fi | ||
mkdir -p "${CONF_PATH}" | ||
|
||
SELF_PATH="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | ||
|
||
__install_settings_file() { | ||
local cnf_file="${1}" | ||
local trg_file=${2:-${cnf_file}} | ||
|
||
local ORIGIN="${SELF_PATH}/${cnf_file}" | ||
local TARGET="${CONF_PATH}/${trg_file}" | ||
|
||
# if file exists, backup. | ||
[[ -f ${TARGET} ]] && [[ ! -L ${TARGET} ]] && mv "${TARGET}"{,.backup} | ||
|
||
# if link already exists, return. | ||
[[ -L ${TARGET} ]] && echo "Link for ${cnf_file} already exists" && return | ||
|
||
# install sym link | ||
echo -e "Linking \e[0;35m${ORIGIN}\e[0m -> \e[0;36m${TARGET}\e[0m" | ||
ln -s "${ORIGIN}" "${TARGET}" | ||
} | ||
|
||
__install_settings_file 'starship.toml' | ||
lnx "${SRC}/starship.toml" "${CONF_PATH}/starship.toml" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,10 @@ | ||
#!/usr/bin/env bash | ||
|
||
SRC="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | ||
CONF_PATH="${HOME}/.config/sublime-text/Packages/User" | ||
# if [[ $(uname) = "Darwin" ]]; then | ||
# CONF_PATH="${HOME}/.config/sublime-text/Packages/User" | ||
# fi | ||
mkdir -p "${CONF_PATH}" | ||
|
||
SELF_PATH="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | ||
|
||
__install_settings_file() { | ||
local cnf_file=$1 | ||
local trg_file=${2:-${cnf_file}} | ||
|
||
local ORIGIN="${SELF_PATH}/${cnf_file}" | ||
local TARGET="${CONF_PATH}/${trg_file}" | ||
|
||
# if file exists, backup. | ||
[[ -f ${TARGET} ]] && [[ ! -L ${TARGET} ]] && mv "${TARGET}"{,.backup} | ||
|
||
# if link already exists, return. | ||
[[ -L ${TARGET} ]] && echo "Link for ${cnf_file} already exists" && return | ||
|
||
# install sym link | ||
echo -e "Linking \e[0;35m${ORIGIN}\e[0m -> \e[0;36m${TARGET}\e[0m" | ||
ln -s "${ORIGIN}" "${TARGET}" | ||
} | ||
|
||
__install_settings_file 'Preferences.sublime-settings' | ||
lnx "${SRC}/Preferences.sublime-settings" "${CONF_PATH}/Preferences.sublime-settings" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/env bash | ||
|
||
"${DOTFILES_PATH}"/config/bat/install-config | ||
"${DOTFILES_PATH}"/config/dircolors/install-config | ||
"${DOTFILES_PATH}"/config/ghostty/install-config | ||
"${DOTFILES_PATH}"/config/git/install-config | ||
"${DOTFILES_PATH}"/config/starship/install-config | ||
"${DOTFILES_PATH}"/config/vim/install-config | ||
"${DOTFILES_PATH}"/config/vscode/install-config | ||
"${DOTFILES_PATH}"/config/sublime/install-config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters