mirror of
https://github.com/alrayyes/dotfiles/
synced 2023-11-14 15:56:30 +00:00
updated install script
This commit is contained in:
parent
b7aa432091
commit
4e92e9a8ce
@ -1,10 +0,0 @@
|
||||
[core]
|
||||
editor = emacs
|
||||
excludesfile = /home/alrayyes/.gitignore_global
|
||||
[user]
|
||||
email = ryan@ryankes.eu
|
||||
name = Ryan Kes
|
||||
signingkey = ryan@ryankes.eu
|
||||
useconfigonly = true
|
||||
[push]
|
||||
default = matching
|
12
install
12
install
@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env zsh
|
||||
|
||||
# We need the environement to be able to symlink files accordingly
|
||||
# We need the environment to be able to symlink files accordingly
|
||||
case "$1" in
|
||||
desktop)
|
||||
EXTENSION="desktop"
|
||||
@ -15,16 +15,6 @@ for d in $(find -- */ -maxdepth 0 -type d | cut -f1 -d '/'); do
|
||||
(stow -t "$HOME" "$d")
|
||||
done
|
||||
|
||||
# Install spaceship zsh theme if it doesn't exist
|
||||
if [ ! -d "$HOME/.oh-my-zsh/custom/themes/spaceship-prompt" ]; then
|
||||
echo "Cloning spacehip-prompt..."
|
||||
git clone https://github.com/denysdovhan/spaceship-prompt.git "$HOME/.oh-my-zsh/custom/themes/spaceship-prompt"
|
||||
fi
|
||||
if [ ! -f "$HOME/.oh-my-zsh/custom/themes/spaceship.zsh-theme" ]; then
|
||||
echo "Linking spacehip-prompt..."
|
||||
ln -s "$HOME/.oh-my-zsh/custom/themes/spaceship-prompt/spaceship.zsh-theme" "$HOME/.oh-my-zsh/custom/themes/spaceship.zsh-theme"
|
||||
fi
|
||||
|
||||
if [ ! -z "$EXTENSION" ]; then
|
||||
echo "\n\nDon't forget to symlink these files:\n\n"
|
||||
find ~ \( -type l -o -type f \) -name "*.$EXTENSION" -exec ls -al {} \;
|
||||
|
Loading…
Reference in New Issue
Block a user