From 418ad427a03f9d5d0ea7dbab0d7c314b813680dc Mon Sep 17 00:00:00 2001 From: anon Date: Thu, 18 Feb 2021 15:58:27 +0700 Subject: [PATCH] add fedora and git script --- {scripts => Scripts}/debian.sh | 6 +++++- Scripts/fedora.sh | 20 ++++++++++++++++++++ Scripts/git.sh | 21 +++++++++++++++++++++ 3 files changed, 46 insertions(+), 1 deletion(-) rename {scripts => Scripts}/debian.sh (76%) create mode 100755 Scripts/fedora.sh create mode 100755 Scripts/git.sh diff --git a/scripts/debian.sh b/Scripts/debian.sh similarity index 76% rename from scripts/debian.sh rename to Scripts/debian.sh index e2a9657..af1db90 100755 --- a/scripts/debian.sh +++ b/Scripts/debian.sh @@ -3,7 +3,7 @@ sudo apt install build-essential \ zsh \ curl wget git \ - neovim \ + neovim tmux \ exa fd-find ripgrep \ openssh-server openssh-client @@ -12,3 +12,7 @@ sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/too # 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 diff --git a/Scripts/fedora.sh b/Scripts/fedora.sh new file mode 100755 index 0000000..797144f --- /dev/null +++ b/Scripts/fedora.sh @@ -0,0 +1,20 @@ +#!/usr/bin/env bash + +sudo dnf install \ + util-linux-user tar \ + zsh \ + curl wget git \ + neovim tmux \ + exa bat fd-find ripgrep \ + openssh \ + golang + +# 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 diff --git a/Scripts/git.sh b/Scripts/git.sh new file mode 100755 index 0000000..ff8037c --- /dev/null +++ b/Scripts/git.sh @@ -0,0 +1,21 @@ +#!/usr/bin/env bash + +# Aliases +git config --global alias.br branch +git config --global alias.ci commit +git config --global alias.cl clone +git config --global alias.co checkout +git config --global alias.df diff +git config --global alias.lg log +git config --global alias.pl pull +git config --global alias.ps push +git config --global alias.st status +git config --global alias.sw switch + +# Editor +git config --global core.editor nvim + +# Misc +git config --global pull.rebase true +git config --global init.defaultBranch main +git config --global fetch.prune true