Finished cleanup
This commit is contained in:
parent
ee2a05a99a
commit
99c7cc50a8
@ -1,21 +1,26 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
function setup_fish()
|
||||
function main()
|
||||
{
|
||||
# Install fish shell
|
||||
if ! brew list | grep fish >/dev/null; then
|
||||
brew install fish
|
||||
fi
|
||||
|
||||
# Add to list of shells and set as default
|
||||
if ! grep /usr/local/bin/fish < /etc/shells >/dev/null; then
|
||||
echo /usr/local/bin/fish | sudo tee -a /etc/shells
|
||||
chsh -s /usr/local/bin/fish
|
||||
fi
|
||||
}
|
||||
|
||||
function link_config()
|
||||
{
|
||||
# Install configuration files
|
||||
if [ ! -d ${HOME}/.config ]; then
|
||||
mkdir ${HOME}/.config
|
||||
fi
|
||||
if [ ! -e ${HOME}/.config/fish ]; then
|
||||
rm -rf ${HOME}/.config/fish
|
||||
ln -s ${DOTFILES}/fish ${HOME}/.config/.
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
export DOTFILES=/Users/thomas/dotfiles
|
||||
setup_fish
|
||||
link_config
|
||||
main "$@"
|
||||
|
@ -1,16 +1,19 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
function setup_git()
|
||||
function main()
|
||||
{
|
||||
if ! brew list | grep git >/dev/null; then
|
||||
brew install git
|
||||
fi
|
||||
|
||||
if [ ! -f "${HOME}/.gitconfig" ]; then
|
||||
cat << EOF > ${HOME}/.gitconfig
|
||||
[include]
|
||||
path = ${DOTFILES}/git/gitconfig
|
||||
[core]
|
||||
excludesfile = ${DOTFILES}/git/gitignore_global
|
||||
EOF
|
||||
fi
|
||||
}
|
||||
|
||||
export DOTFILES=/Users/thomas/dotfiles
|
||||
setup_git
|
||||
main "$@"
|
||||
|
@ -41,8 +41,8 @@ function setup_kitty()
|
||||
|
||||
export DOTFILES=/Users/thomas/dotfiles
|
||||
|
||||
#ssh/setup.sh
|
||||
#git/setup.sh
|
||||
ssh/setup.sh
|
||||
git/setup.sh
|
||||
NAS_mounts/setup.sh
|
||||
#fish/setup.sh
|
||||
fish/setup.sh
|
||||
wm/setup.sh
|
||||
|
10
ssh/setup.sh
10
ssh/setup.sh
@ -1,13 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
function setup_ssh()
|
||||
function main()
|
||||
{
|
||||
# copy private key to .ssh
|
||||
# cp ${KEYFILE} ~/.ssh/thomas_rsa
|
||||
# chmod 400 ~/.ssh/thomas_rsa
|
||||
# ssh-add -K ~/.ssh/thomas_rsa
|
||||
ln -s ${DOTFILES}/ssh/ssh_config ${HOME}/.ssh/config
|
||||
if [ ! -e ${HOME}/.ssh/config ]; then
|
||||
rm -f ${HOME}/.ssh/config
|
||||
ln -s ${DOTFILES}/ssh/config ${HOME}/.ssh/config
|
||||
fi
|
||||
}
|
||||
|
||||
export DOTFILES=/Users/thomas/dotfiles
|
||||
setup_ssh
|
||||
main "$@"
|
||||
|
@ -23,4 +23,4 @@ function main()
|
||||
fi
|
||||
}
|
||||
|
||||
main
|
||||
main "$@"
|
||||
|
Loading…
x
Reference in New Issue
Block a user