Initial config for debian
This commit is contained in:
parent
83307b4342
commit
3dc51a7abb
@ -8,19 +8,48 @@ sudo dnf install fish neovim kitty-fish-integration -y
|
|||||||
|
|
||||||
fish -c "curl -sL https://raw.githubusercontent.com/jorgebucaran/fisher/main/functions/fisher.fish | source && fisher install jorgebucaran/fisher"
|
fish -c "curl -sL https://raw.githubusercontent.com/jorgebucaran/fisher/main/functions/fisher.fish | source && fisher install jorgebucaran/fisher"
|
||||||
|
|
||||||
fish -c "fish_add_path -U ~/.local/bin"
|
|
||||||
fish -c "fish_add_path -U ~/.cargo/bin"
|
|
||||||
fish -c "fish_add_path -U ~/.go/bin"
|
|
||||||
GOPATH="$HOME/.go" go install github.com/gsamokovarov/jump@latest
|
GOPATH="$HOME/.go" go install github.com/gsamokovarov/jump@latest
|
||||||
|
|
||||||
chsh -s /usr/bin/fish
|
cargo install atuin
|
||||||
|
|
||||||
|
|
||||||
#cargo install atuin
|
|
||||||
|
|
||||||
echo "======================================================================="
|
|
||||||
echo "atuin will not be installed automatically, to install it manually, run:"
|
|
||||||
echo "cargo install atuin"
|
|
||||||
|
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
|
||||||
|
{{ if (and (eq .chezmoi.os "linux") (eq .chezmoi.osRelease.id "debian")) -}}
|
||||||
|
sudo apt update
|
||||||
|
sudo apt install kitty-terminfo -y
|
||||||
|
sudo apt install gpg git curl wget ripgrep fd-find unzip python3-pip cargo go htop fzf bat -y
|
||||||
|
|
||||||
|
|
||||||
|
## Install fish repo
|
||||||
|
$VERS={{ .chezmoi.osRelease.versionID }}
|
||||||
|
echo 'deb http://download.opensuse.org/repositories/shells:/fish:/release:/3/Debian_$VERS/ /' | sudo tee /etc/apt/sources.list.d/shells:fish:release:3.list
|
||||||
|
curl -fsSL https://download.opensuse.org/repositories/shells:fish:release:3/Debian_$VERS/Release.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/shells_fish_release_3.gpg > /dev/null
|
||||||
|
sudo apt update
|
||||||
|
|
||||||
|
|
||||||
|
## Install fish
|
||||||
|
sudo apt install fish
|
||||||
|
|
||||||
|
|
||||||
|
## Install neovim
|
||||||
|
sudo curl -L https://github.com/neovim/neovim/releases/latest/download/nvim.appimage --output /usr/local/bin/nvim.appimage
|
||||||
|
sudo chmod a+x /usr/local/bin/nvim.appimage
|
||||||
|
sudo ln -s /usr/local/bin/nvim.appimage /usr/local/bin/nvim
|
||||||
|
|
||||||
|
CUSTOM_NVIM_PATH=/usr/local/bin/nvim.appimage
|
||||||
|
# Set the above with the correct path, then run the rest of the commands:
|
||||||
|
set -u
|
||||||
|
sudo update-alternatives --install /usr/bin/ex ex "${CUSTOM_NVIM_PATH}" 110
|
||||||
|
sudo update-alternatives --install /usr/bin/vi vi "${CUSTOM_NVIM_PATH}" 110
|
||||||
|
sudo update-alternatives --install /usr/bin/view view "${CUSTOM_NVIM_PATH}" 110
|
||||||
|
sudo update-alternatives --install /usr/bin/vim vim "${CUSTOM_NVIM_PATH}" 110
|
||||||
|
sudo update-alternatives --install /usr/bin/vimdiff vimdiff "${CUSTOM_NVIM_PATH}" 110
|
||||||
|
|
||||||
|
|
||||||
|
## install atuin
|
||||||
|
bash <(curl https://raw.githubusercontent.com/ellie/atuin/main/install.sh)
|
||||||
|
|
||||||
|
## install jump
|
||||||
|
GOPATH="$HOME/.go" go install github.com/gsamokovarov/jump@latest
|
||||||
|
|
||||||
|
{{ end -}}
|
||||||
|
Loading…
Reference in New Issue
Block a user