Setup shell directly now

This commit is contained in:
David Heinemeier Hansson 2024-05-27 13:14:39 -07:00
parent 5c0e1c01db
commit ce97f2eed1
2 changed files with 5 additions and 22 deletions

View File

@ -1,22 +0,0 @@
# Ensure .config exists
mkdir -p ~/.config
# Copy all dotfiles
for entry in ~/.local/share/omakub/dotfiles/*; do
# Copy all root files as .file in ~/
# Any existing files will be renamed .bak
if [ -f $entry ]; then
target=~/."$(basename $entry)"
[ -e $target ] && mv $target $target.bak
cp $entry $target
fi
# Copy all directories in ~/.config/
# Any existing directories will be renamed .bak
if [ -d $entry ]; then
target=~/.config/"$(basename $entry)"
[ -e $target ] && mv $target $target.bak
cp -R $entry $target
fi
done
unset entry

5
install/shell.sh Normal file
View File

@ -0,0 +1,5 @@
[ -f "~/.bashrc" ] && mv ~/.bashrc ~/.bashrc.bak
cp ~/.local/share/omakub/dotfiles/bashrc ~/.bashrc
[ -f "~/.inputrc" ] && mv ~/.inputrc ~/.inputrc.bak
cp ~/.local/share/omakub/dotfiles/inputrc ~/.inputrc