add stow
This commit is contained in:
12
.config/.gitignore
vendored
12
.config/.gitignore
vendored
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
|
|
||||||
!.gitignore
|
!.gitignore
|
||||||
!btop/
|
!btop/
|
||||||
btop/btop.log
|
btop/btop.log
|
||||||
!neofetch/
|
!neofetch/
|
||||||
!ssh/
|
!ssh/
|
4
.gitconfig.d/.gitignore
vendored
4
.gitconfig.d/.gitignore
vendored
@ -1,3 +1,3 @@
|
|||||||
/*
|
/*
|
||||||
!.gitignore
|
!.gitignore
|
||||||
!example.gitconfig
|
!example.gitconfig
|
@ -1,14 +1,14 @@
|
|||||||
[user]
|
[user]
|
||||||
email = user@mail
|
email = user@mail
|
||||||
name = John Doe
|
name = John Doe
|
||||||
signingkey = 1234
|
signingkey = 1234
|
||||||
[credential]
|
[credential]
|
||||||
helper = store
|
helper = store
|
||||||
[push]
|
[push]
|
||||||
autoSetupRemote = true
|
autoSetupRemote = true
|
||||||
[core]
|
[core]
|
||||||
autocrlf = true
|
autocrlf = true
|
||||||
[pull]
|
[pull]
|
||||||
rebase = true
|
rebase = true
|
||||||
[commit]
|
[commit]
|
||||||
gpgsign = true
|
gpgsign = true
|
||||||
|
31
.gitignore
vendored
31
.gitignore
vendored
@ -1,15 +1,16 @@
|
|||||||
/*
|
/*
|
||||||
|
|
||||||
!setup
|
!setup
|
||||||
!zsh/
|
!zsh/
|
||||||
!.gitignore
|
!.gitignore
|
||||||
!.alias.d/
|
!.alias.d/
|
||||||
!.config/
|
!.config/
|
||||||
!.gitconfig
|
!.gitconfig
|
||||||
!.gitconfig.d
|
!.gitconfig.d
|
||||||
!.p10k.zsh
|
!.p10k.zsh
|
||||||
!.zshrc
|
!.zshrc
|
||||||
!.zshenv.template
|
!.zshenv.template
|
||||||
!.profile
|
!.profile
|
||||||
!install
|
!install
|
||||||
!README.md
|
!README.md
|
||||||
|
!.stow-ignore-local
|
||||||
|
18
.gitmodules
vendored
18
.gitmodules
vendored
@ -1,9 +1,9 @@
|
|||||||
[submodule "zsh/plugins/zsh-autosuggestions"]
|
[submodule "zsh/plugins/zsh-autosuggestions"]
|
||||||
path = zsh/plugins/zsh-autosuggestions
|
path = zsh/plugins/zsh-autosuggestions
|
||||||
url = https://github.com/zsh-users/zsh-autosuggestions
|
url = https://github.com/zsh-users/zsh-autosuggestions
|
||||||
[submodule "zsh/plugins/zsh-syntax-highlighting"]
|
[submodule "zsh/plugins/zsh-syntax-highlighting"]
|
||||||
path = zsh/plugins/zsh-syntax-highlighting
|
path = zsh/plugins/zsh-syntax-highlighting
|
||||||
url = https://github.com/zsh-users/zsh-syntax-highlighting
|
url = https://github.com/zsh-users/zsh-syntax-highlighting
|
||||||
[submodule "zsh/themes/powerlevel10k"]
|
[submodule "zsh/themes/powerlevel10k"]
|
||||||
path = zsh/themes/powerlevel10k
|
path = zsh/themes/powerlevel10k
|
||||||
url = https://github.com/romkatv/powerlevel10k
|
url = https://github.com/romkatv/powerlevel10k
|
||||||
|
59
install
59
install
@ -1,29 +1,30 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo "[+] Updating System Packages..."
|
echo "[+] Updating System Packages..."
|
||||||
echo
|
echo
|
||||||
sudo apt update -qq
|
sudo apt update -qq
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo "[+] Installing Dependencies..."
|
echo "[+] Installing Dependencies..."
|
||||||
echo
|
echo
|
||||||
sudo apt install -yqq \
|
sudo apt install -yqq \
|
||||||
zsh \
|
zsh \
|
||||||
curl \
|
curl \
|
||||||
exa \
|
exa \
|
||||||
direnv \
|
direnv \
|
||||||
bat \
|
bat \
|
||||||
btop
|
btop \
|
||||||
|
stow
|
||||||
echo
|
|
||||||
echo "[+] Installing Oh My Zsh..."
|
echo
|
||||||
echo
|
echo "[+] Installing Oh My Zsh..."
|
||||||
|
echo
|
||||||
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
|
|
||||||
|
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
|
||||||
echo "Include $HOME/.config/ssh/*" >> "$HOME/.ssh/config"
|
|
||||||
|
echo "Include $HOME/.config/ssh/*" >> "$HOME/.ssh/config"
|
||||||
./setup
|
|
||||||
|
./setup
|
||||||
|
56
setup
56
setup
@ -1,29 +1,29 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
echo "[+] Cloning submodules..."
|
echo "[+] Cloning submodules..."
|
||||||
git submodule update --init --recursive
|
git submodule update --init --recursive
|
||||||
|
|
||||||
echo "[+] Creating Gitconfigs..."
|
echo "[+] Creating Gitconfigs..."
|
||||||
|
|
||||||
(
|
(
|
||||||
for config in $PWD/.gitconfig.d/*.gitconfig; do
|
for config in $PWD/.gitconfig.d/*.gitconfig; do
|
||||||
echo "[include]"
|
echo "[include]"
|
||||||
echo " path = $config"
|
echo " path = $config"
|
||||||
done;
|
done;
|
||||||
) > "$HOME/.gitconfig"
|
) > "$HOME/.gitconfig"
|
||||||
|
|
||||||
echo "[+] Creating symlinks..."
|
echo "[+] Creating symlinks..."
|
||||||
|
|
||||||
ln -sf "$PWD/.zshrc" "$HOME/.zshrc"
|
ln -sf "$PWD/.zshrc" "$HOME/.zshrc"
|
||||||
ln -sf "$PWD/.p10k.zsh" "$HOME/.p10k.zsh"
|
ln -sf "$PWD/.p10k.zsh" "$HOME/.p10k.zsh"
|
||||||
ln -sf "$PWD/.config" "$HOME/.config"
|
ln -sf "$PWD/.config" "$HOME/.config"
|
||||||
ln -sf "$PWD/.alias.d" "$HOME/.alias.d"
|
ln -sf "$PWD/.alias.d" "$HOME/.alias.d"
|
||||||
ln -sf "$PWD/.profile" "$HOME/.profile"
|
ln -sf "$PWD/.profile" "$HOME/.profile"
|
||||||
|
|
||||||
if [ ! -f "$PWD/.zshenv" ]; then
|
if [ ! -f "$PWD/.zshenv" ]; then
|
||||||
cp "$PWD/.zshenv.template" "$PWD/.zshenv"
|
cp "$PWD/.zshenv.template" "$PWD/.zshenv"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ln -sf "$PWD/.zshenv" "$HOME/.zshenv"
|
ln -sf "$PWD/.zshenv" "$HOME/.zshenv"
|
Reference in New Issue
Block a user