mirror of
https://github.com/joshuadavidthomas/dotfiles.git
synced 2025-12-23 05:36:53 +00:00
move install cloning to top
This commit is contained in:
parent
b3324717a8
commit
b1bd007658
1 changed files with 11 additions and 10 deletions
21
install
21
install
|
|
@ -1,15 +1,6 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -o errexit
|
||||
set -o pipefail
|
||||
set -o nounset
|
||||
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
INSTALL_DIR=${HOME}/.cfg
|
||||
OH_MY_ZSH_DIR=${HOME}/.oh-my-zsh
|
||||
ZSH_CUSTOM=${OH_MY_ZSH_DIR}/custom
|
||||
LOCAL_BIN_DIR=${HOME}/.local/bin
|
||||
|
||||
config () {
|
||||
/usr/bin/git --git-dir=${INSTALL_DIR}/ --work-tree=${HOME} $@
|
||||
|
|
@ -28,7 +19,17 @@ install_bare_dotfiles () {
|
|||
|
||||
update_bare_dotfiles () {
|
||||
config pull
|
||||
}
|
||||
}z
|
||||
|
||||
set -o errexit
|
||||
set -o pipefail
|
||||
set -o nounset
|
||||
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
OH_MY_ZSH_DIR=${HOME}/.oh-my-zsh
|
||||
ZSH_CUSTOM=${OH_MY_ZSH_DIR}/custom
|
||||
LOCAL_BIN_DIR=${HOME}/.local/bin
|
||||
|
||||
[[ -d ${LOCAL_BIN_DIR} ]] || mkdir -p ${LOCAL_BIN_DIR}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue