From 6dea68d2f0bb075632f967ea6e0c7f390444bc37 Mon Sep 17 00:00:00 2001 From: Tran Hau Date: Fri, 26 Feb 2021 15:10:05 +0700 Subject: [PATCH] split debian fedora misc --- Scripts/debian.sh | 17 ----------------- Scripts/fedora.sh | 19 +------------------ Scripts/misc.sh | 18 ++++++++++++++++++ 3 files changed, 19 insertions(+), 35 deletions(-) create mode 100755 Scripts/misc.sh diff --git a/Scripts/debian.sh b/Scripts/debian.sh index ba43e37..6a0223b 100755 --- a/Scripts/debian.sh +++ b/Scripts/debian.sh @@ -9,20 +9,3 @@ sudo apt install \ openssh-server openssh-client \ python3 python3-venv \ neofetch - -# https://github.com/ohmyzsh/ohmyzsh/ -sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" - -# https://github.com/romkatv/powerlevel10k#oh-my-zsh -git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k - -# https://github.com/junegunn/fzf#using-git -git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf -~/.fzf/install - -# https://github.com/junegunn/vim-plug -sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \ - https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' - -# https://golangci-lint.run/usage/install/#local-installation -curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.37.0 diff --git a/Scripts/fedora.sh b/Scripts/fedora.sh index e83a075..2ae7596 100755 --- a/Scripts/fedora.sh +++ b/Scripts/fedora.sh @@ -5,24 +5,7 @@ sudo dnf install \ zsh \ curl wget git \ neovim tmux \ - exa bat fd-find ripgrep \ + exa bat fd-find ripgrep git-delta \ openssh \ golang nodejs python3 \ neofetch - -# https://github.com/ohmyzsh/ohmyzsh/ -sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" - -# https://github.com/romkatv/powerlevel10k#oh-my-zsh -git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k - -# https://github.com/junegunn/fzf#using-git -git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf -~/.fzf/install - -# https://github.com/junegunn/vim-plug -sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \ - https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' - -# https://golangci-lint.run/usage/install/#local-installation -curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.37.0 diff --git a/Scripts/misc.sh b/Scripts/misc.sh new file mode 100755 index 0000000..b81b1ed --- /dev/null +++ b/Scripts/misc.sh @@ -0,0 +1,18 @@ +#!/usr/bin/env bash + +# https://github.com/ohmyzsh/ohmyzsh/ +sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" + +# https://github.com/romkatv/powerlevel10k#oh-my-zsh +git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k + +# https://github.com/junegunn/fzf#using-git +git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf +~/.fzf/install + +# https://github.com/junegunn/vim-plug +sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \ + https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' + +# https://golangci-lint.run/usage/install/#local-installation +curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.37.0