Skip to content

Instantly share code, notes, and snippets.

@g10guang
Last active March 20, 2022 03:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save g10guang/5969f5a915a6dfc0d0519c809de05e89 to your computer and use it in GitHub Desktop.
Save g10guang/5969f5a915a6dfc0d0519c809de05e89 to your computer and use it in GitHub Desktop.
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/.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/ https://github.com/isacikgoz/tldr

go install github.com/isacikgoz/tldr/cmd/tldr@master

login without password

ssh-copy-id i18ndev

ssh-copy-id username@ip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment