speedie-zsh | Add new config
This commit is contained in:
parent
b03151af1a
commit
acce313e84
11
README.md
Normal file
11
README.md
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
# szsh
|
||||||
|
speedie's zsh configuration.
|
||||||
|
Works well with my [st](https://github.com/speedie-de/st) configuration.
|
||||||
|
|
||||||
|
Installation
|
||||||
|
- git clone <this-page>
|
||||||
|
- cd szsh/.config
|
||||||
|
- cp -r zsh ~/.config
|
||||||
|
- echo "export ZDOTDIR=~/.config/zsh/dotfiles" >> ~/.zprofile
|
||||||
|
- Install zsh using your package manager
|
||||||
|
- chsh /bin/zsh
|
16
commit.sh
Executable file
16
commit.sh
Executable file
|
@ -0,0 +1,16 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
if [ -e "$HOME/.config/zsh" ]; then
|
||||||
|
rm -rf .config/zsh
|
||||||
|
cp -r $HOME/.config/zsh .config/
|
||||||
|
|
||||||
|
# remove history
|
||||||
|
rm -rf .config/zsh/.zcompcache
|
||||||
|
rm -rf .config/zsh/.zcompdump
|
||||||
|
rm -rf .config/zsh/history
|
||||||
|
rm -rf .config/zsh/dotfiles/history
|
||||||
|
|
||||||
|
git add .config/*
|
||||||
|
git commit -a -m "speedie-zsh | Add new config"
|
||||||
|
git push
|
||||||
|
fi
|
8
install.sh
Executable file
8
install.sh
Executable file
|
@ -0,0 +1,8 @@
|
||||||
|
#!/bin/sh
|
||||||
|
echo 3; sleep 1; echo 2; sleep 1; echo 1; sleep 1
|
||||||
|
|
||||||
|
[ -e "$HOME/.config/zsh" ] && cp -r $HOME/.config/zsh /tmp/zsh-backup && rm -rf $HOME/.config/zsh
|
||||||
|
|
||||||
|
cp -r .config/zsh $HOME/.config/
|
||||||
|
|
||||||
|
echo "installed."
|
Loading…
Reference in a new issue