add fedora and git script

main
anon 2021-02-18 15:58:27 +07:00
parent 3dba56b0a3
commit 418ad427a0
3 changed files with 46 additions and 1 deletions

View File

@ -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

20
Scripts/fedora.sh Executable file
View File

@ -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

21
Scripts/git.sh Executable file
View File

@ -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