mirror of
https://github.com/m-housh/dotfiles.git
synced 2026-02-14 06:12:34 +00:00
Working on install script(s)
This commit is contained in:
18
git/setup
18
git/setup
@@ -1,4 +1,18 @@
|
||||
#!/bin/sh
|
||||
|
||||
mkdir "${HOME}/.config" >/dev/null 2>&1
|
||||
ln -sfv "${PWD}/git" "${HOME}/.config"
|
||||
config="${HOME}/.config"
|
||||
|
||||
_make_dirs() {
|
||||
test ! -d "${config}" && mkdir "${config}"
|
||||
}
|
||||
|
||||
_remove_git() {
|
||||
test -d "${config}/git" && rm "${config}/git"
|
||||
}
|
||||
|
||||
_link_git() {
|
||||
ln -sfv "${PWD}/git" "${config}"
|
||||
}
|
||||
|
||||
#------------------------------- main -------------------------------
|
||||
_make_dirs && _link_git
|
||||
|
||||
Reference in New Issue
Block a user