-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/github/pr/43'
- Loading branch information
Showing
1 changed file
with
22 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,24 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
# IMPORTANT: please note that you might override existing | ||
# configuration files in the current working directory! => | ||
wget -O .screenrc https://git.grml.org/f/grml-etc-core/etc/grml/screenrc_generic | ||
wget -O .tmux.conf https://git.grml.org/f/grml-etc-core/etc/tmux.conf | ||
wget -O .vimrc https://git.grml.org/f/grml-etc-core/etc/vim/vimrc | ||
wget -O .zshrc https://git.grml.org/f/grml-etc-core/etc/zsh/zshrc | ||
# optional: | ||
# wget -O .zshrc.local https://git.grml.org/f/grml-etc-core/etc/skel/.zshrc | ||
# configuration files in the current working directory! | ||
if command -v wget >/dev/null 2>&1 ; then | ||
wget -O .screenrc https://git.grml.org/f/grml-etc-core/etc/grml/screenrc_generic | ||
wget -O .tmux.conf https://git.grml.org/f/grml-etc-core/etc/tmux.conf | ||
wget -O .vimrc https://git.grml.org/f/grml-etc-core/etc/vim/vimrc | ||
wget -O .zshrc https://git.grml.org/f/grml-etc-core/etc/zsh/zshrc | ||
# optional: | ||
# wget -O .zshrc.local https://git.grml.org/f/grml-etc-core/etc/skel/.zshrc | ||
elif command -v curl >/dev/null 2>&1 ; then | ||
curl -L -o .screenrc https://git.grml.org/f/grml-etc-core/etc/grml/screenrc_generic | ||
curl -L -o .tmux.conf https://git.grml.org/f/grml-etc-core/etc/tmux.conf | ||
curl -L -o .vimrc https://git.grml.org/f/grml-etc-core/etc/vim/vimrc | ||
curl -L -o .zshrc https://git.grml.org/f/grml-etc-core/etc/zsh/zshrc | ||
# optional: | ||
# curl -L -o .zshrc.local https://git.grml.org/f/grml-etc-core/etc/skel/.zshrc | ||
else | ||
echo 'Error: neither wget nor curl available for retrieving configuration files.' >&2 | ||
exit 1 | ||
fi |