Skip to content

Instantly share code, notes, and snippets.

@g10guang

g10guang/config_linux.md

Last active Sep 9, 2020
Embed
What would you like to do?
config my new linux

ssh

config github/gitlab ssh key

ssh-keygen

ssh login with public key

ssh-copy-id SYSUSER@x.x.x.x

redis

sudo apt-get install redis-tools

zsh

install

sudo apt install zsh

set as default shell

chsh -s $(which zsh)

install oh-my-zsh

sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

install autojump

sudo apt install autojump

install autosuggestion

git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions

install zsh-syntax-highlighting

git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting

vim

https://github.com/g10guang/dot-vimrc#installation

curl 'https://gist.githubusercontent.com/simonista/8703722/raw/d08f2b4dc10452b97d3ca15386e9eed457a53c61/.vimrc' > .vimrc

go

curl -OL "https://dl.google.com/go/go1.13.4.linux-amd64.tar.gz"

tmux

sudo apt install tmux
curl 'https://gist.githubusercontent.com/g10guang/ed24dcbec24318e8c0002b3cfbeafad1/raw/960382e18da43c30faffab7a00ee729ce855e197/.tmux.conf' > ~/.tmux.conf

fzf

MacOS

brew install fd fzf
/usr/local/opt/fzf/install
source ~/.zshrc

linux

git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
cd ~/.fzf/
./install

tldr

https://tldr.sh/

go get -u github.com/isacikgoz/tldr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment