Skip to content

Instantly share code, notes, and snippets.

@tdussa
Last active February 19, 2023 15:52
Show Gist options
  • Save tdussa/8bf81fccd496e9cf921603b2c6ce850e to your computer and use it in GitHub Desktop.
Save tdussa/8bf81fccd496e9cf921603b2c6ce850e to your computer and use it in GitHub Desktop.
General sanity files
#! /bin/sh
DOTFILES=".aliases .extend.bashrc .zshrc.local"
EXTENDFILES=".bashrc .zshrc .zshrc.pre"
PROFILEFILES="colorized_root_prompt.sh history_extend_size.sh history_timestamp.sh timestamped_prompt.sh timestamped_root_prompt.sh"
FILES="${DOTFILES} ${EXTENDFILES} ${PROFILEFILES}"
mkdir bin git
cd git
git clone https://github.com/tdussa/dotfiles.git
git clone https://github.com/tdussa/xkb-layout.git
cd ..
ln -s git/xkb-layout .xkb
ln -s ../.xkb/fixkbd.sh bin/
for item in ${DOTFILES}; do
ln -sf git/dotfiles/${item} .
done
for item in ${EXTENDFILES}; do
cat git/dotfiles/${item} >> ${item}
done
for item in ${PROFILEFILES}; do
sudo ln -sf $(pwd)/git/dotfiles/${item} /etc/profile.d/
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment