Setup shell directly now
This commit is contained in:
parent
5c0e1c01db
commit
ce97f2eed1
@ -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
5
install/shell.sh
Normal 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
|
Loading…
Reference in New Issue
Block a user