Mercurial > hg > zsh-env
view setup.sh @ 178:51710c7c26c2
jdk 13 is superseeded by jdk 14, use the generic jdk 11 link
author | Dirk Olmes <dirk.olmes@codedo.de> |
---|---|
date | Tue, 21 Jul 2020 09:15:13 +0200 |
parents | f8c9b13158b8 |
children | f6df36a328b5 |
line wrap: on
line source
#!/bin/bash # # setup the shell env on a new, naked host # cd $HOME replace_with_link() { local target="$1" local source="$2" if [[ -f $target ]]; then rm $target fi ln -s $source $target } replace_with_link .zshrc .zsh-env/zshrc replace_with_link .hgrc .zsh-env/hgrc replace_with_link .nanorc .zsh-env/.nanorc replace_with_link .screenrc .zsh-env/.screenrc touch .zsh-env/zshrc-$HOST cat << EOF > .zsh-env/.hgignore syntax: glob .hgignore zshrc-$HOST EOF