Replace dotbot with simple shell script
This commit is contained in:
parent
0a691062c8
commit
ae59306d0b
11 changed files with 2853 additions and 59 deletions
4
.gitmodules
vendored
4
.gitmodules
vendored
|
@ -1,4 +0,0 @@
|
|||
[submodule "dotbot"]
|
||||
path = dotbot
|
||||
url = https://github.com/anishathalye/dotbot
|
||||
ignore = dirty
|
2
config.env
Normal file
2
config.env
Normal file
|
@ -0,0 +1,2 @@
|
|||
# Path to your dotfiles.
|
||||
export DOTFILES=$HOME/.dotfiles
|
1
dotbot
1
dotbot
|
@ -1 +0,0 @@
|
|||
Subproject commit a5e1dca91d1904cb408f6158fb286df15a891c3d
|
15
install
15
install
|
@ -1,15 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
CONFIG="install.conf.yaml"
|
||||
DOTBOT_DIR="dotbot"
|
||||
|
||||
DOTBOT_BIN="bin/dotbot"
|
||||
BASEDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
|
||||
cd "${BASEDIR}"
|
||||
git -C "${DOTBOT_DIR}" submodule sync --quiet --recursive
|
||||
git submodule update --init --recursive "${DOTBOT_DIR}"
|
||||
|
||||
"${BASEDIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASEDIR}" -c "${CONFIG}" "${@}"
|
41
install-linux.sh
Executable file
41
install-linux.sh
Executable file
|
@ -0,0 +1,41 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Load common config environment variables
|
||||
source ./config.env
|
||||
|
||||
echo "Setting up your system..."
|
||||
echo "Your dotfiles path: $DOTFILES"
|
||||
|
||||
if [ ! -d ~/.znap/znap ]; then
|
||||
echo "Installing znap..."
|
||||
sh -c "$(git clone --depth 1 -- https://github.com/marlonrichert/zsh-snap.git ~/.znap/znap)"
|
||||
fi
|
||||
|
||||
# Removes .zshrc from $HOME (if it exists) and symlinks the .zshrc file from the .dotfiles
|
||||
rm -rf $HOME/.zshrc
|
||||
ln -s $DOTFILES/zsh/.zshrc $HOME/.zshrc
|
||||
|
||||
# Relink other software configs
|
||||
# tmux
|
||||
rm -rf $HOME/.tmux.conf
|
||||
ln -s $DOTFILES/.tmux.conf $HOME/.tmux.conf
|
||||
|
||||
# nvim
|
||||
rm -rf $HOME/.config/nvim
|
||||
ln -s $DOTFILES/nvim $HOME/.config/nvim
|
||||
|
||||
# kitty
|
||||
rm -rf $HOME/.config/kitty
|
||||
ln -s $DOTFILES/kitty $HOME/.config/kitty
|
||||
|
||||
# NVIM config:
|
||||
# Install vim-plug for nvim
|
||||
if [ ! -f ~/.config/nvim/autoload/plug.vim ]; then
|
||||
echo "Installing vim-plug for nvim"
|
||||
curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
|
||||
fi
|
||||
|
||||
# Install + update all nvim plugins
|
||||
nvim +PlugUpgrade +PlugUpdate +qall
|
||||
|
||||
echo "Done! All set up, ready to be used!"
|
|
@ -1,36 +0,0 @@
|
|||
- defaults:
|
||||
link:
|
||||
relink: true
|
||||
create: true
|
||||
|
||||
# clean config and home directory from bad symbolic links
|
||||
- clean: ['~', '.config/']
|
||||
|
||||
- link:
|
||||
~/.zshrc:
|
||||
force: true
|
||||
path: shell/zshrc
|
||||
~/.tmux.conf:
|
||||
path: shell/tmux.conf
|
||||
~/.config/nvim:
|
||||
path: nvim
|
||||
~/.config/kitty:
|
||||
path: kitty
|
||||
|
||||
- shell:
|
||||
# install znap (zsh plugin manager)
|
||||
- command: 'if [ ! -d ~/.znap/znap ]; then sh -c "$(git clone --depth 1 -- https://github.com/marlonrichert/zsh-snap.git ~/.znap/znap)"; fi'
|
||||
stdin: false
|
||||
stdout: true
|
||||
description: "Installing znap (zsh-snap):"
|
||||
quiet: false
|
||||
|
||||
# install vim plug for nvim
|
||||
- [curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim, "Install vim-plug for nvim:"]
|
||||
|
||||
# install & upgrade nvim plugins
|
||||
- command: nvim +PlugUpgrade +PlugUpdate +qall
|
||||
stdin: true
|
||||
stdout: true
|
||||
description: "Install nvim plugins! Hit enter once if stuck:"
|
||||
quiet: false
|
2804
nvim/autoload/plug.vim
Normal file
2804
nvim/autoload/plug.vim
Normal file
File diff suppressed because it is too large
Load diff
0
shell/.gitignore → zsh/.gitignore
vendored
0
shell/.gitignore → zsh/.gitignore
vendored
|
@ -1,3 +1,6 @@
|
|||
# Load common config environment variables
|
||||
source config.env
|
||||
|
||||
# Load zsh-snap (znap) plugin manager
|
||||
zstyle ':znap:*' repos-dir ~/.znap
|
||||
source ~/.znap/znap/znap.zsh
|
||||
|
@ -44,9 +47,9 @@ alias yarn="firejail yarn"
|
|||
alias npm="firejail npm"
|
||||
|
||||
# localcommands
|
||||
if [ -f ~/.dotfiles/shell/localcommands ]
|
||||
if [ -f $DOTFILES/zsh/localcommands ]
|
||||
then
|
||||
source ~/.dotfiles/shell/localcommands
|
||||
source $DOTFILES/zsh/localcommands
|
||||
fi
|
||||
|
||||
# Tmuxinator autocomplete
|
||||
|
@ -54,7 +57,7 @@ if [ -f ~/.bin/tmuxinator.zsh ]; then
|
|||
source ~/.bin/tmuxinator.zsh
|
||||
fi
|
||||
|
||||
# Set vim as default editor
|
||||
# Set nvim as default editor
|
||||
export EDITOR='nvim'
|
||||
|
||||
if _has ruby;
|
Loading…
Add table
Reference in a new issue