mirror of
https://github.com/Lissy93/dotfiles.git
synced 2024-11-25 08:43:26 +01:00
Auto-locate dotfile directory
This commit is contained in:
parent
ccf4ccc222
commit
8b83c13224
17
install.sh
17
install.sh
@ -12,9 +12,17 @@
|
|||||||
# Licensed under MIT (C) Alicia Sykes 2022 <https://aliciasykes.com> #
|
# Licensed under MIT (C) Alicia Sykes 2022 <https://aliciasykes.com> #
|
||||||
######################################################################
|
######################################################################
|
||||||
|
|
||||||
|
# Set variables for reference
|
||||||
|
PARAMS=$* # User-specified parameters
|
||||||
|
CURRENT_DIR=$(cd "$(dirname ${BASH_SOURCE[0]})" && pwd)
|
||||||
|
SYSTEM_TYPE=$(uname -s) # Get system type - Linux / MacOS (Darwin)
|
||||||
|
PROMPT_TIMEOUT=15 # When user is prompted for input, skip after x seconds
|
||||||
|
START_TIME=`date +%s` # Start timer
|
||||||
|
SRC_DIR=$(dirname ${0})
|
||||||
|
|
||||||
# Dotfiles Source Repo and Destination Directory
|
# Dotfiles Source Repo and Destination Directory
|
||||||
REPO_NAME="${REPO_NAME:-Lissy93/Dotfiles}"
|
REPO_NAME="${REPO_NAME:-Lissy93/Dotfiles}"
|
||||||
DOTFILES_DIR="${DOTFILES_DIR:-$HOME/Documents/config/dotfiles}"
|
DOTFILES_DIR="${DOTFILES_DIR:-${SRC_DIR:-$HOME/.dotfiles}}"
|
||||||
DOTFILES_REPO="${DOTFILES_REPO:-https://github.com/${REPO_NAME}.git}"
|
DOTFILES_REPO="${DOTFILES_REPO:-https://github.com/${REPO_NAME}.git}"
|
||||||
|
|
||||||
# Config Names and Locations
|
# Config Names and Locations
|
||||||
@ -23,13 +31,6 @@ SYMLINK_FILE="${SYMLINK_FILE:-symlinks.yaml}"
|
|||||||
DOTBOT_DIR="lib/dotbot"
|
DOTBOT_DIR="lib/dotbot"
|
||||||
DOTBOT_BIN="bin/dotbot"
|
DOTBOT_BIN="bin/dotbot"
|
||||||
|
|
||||||
# Set variables for reference
|
|
||||||
PARAMS=$* # User-specified parameters
|
|
||||||
CURRENT_DIR=$(cd "$(dirname ${BASH_SOURCE[0]})" && pwd)
|
|
||||||
SYSTEM_TYPE=$(uname -s) # Get system type - Linux / MacOS (Darwin)
|
|
||||||
PROMPT_TIMEOUT=15 # When user is prompted for input, skip after x seconds
|
|
||||||
START_TIME=`date +%s` # Start timer
|
|
||||||
|
|
||||||
# Color Variables
|
# Color Variables
|
||||||
CYAN_B='\033[1;96m'
|
CYAN_B='\033[1;96m'
|
||||||
YELLOW_B='\033[1;93m'
|
YELLOW_B='\033[1;93m'
|
||||||
|
Loading…
Reference in New Issue
Block a user