Code Monkey home page Code Monkey logo

rcs's Introduction

Install

# install oh-my-zsh
git clone --depth=1 https://github.com/ohmyzsh/ohmyzsh.git ~/.oh-my-zsh

git clone https://github.com/cobbled/rcs rcs
ln -s $(pwd)/rcs ~/.rcs
ln -s ~/.rcs/zshenv ~/.zshenv
ln -s ~/.rcs/zshrc ~/.zshrc
ln -s ~/.rcs/robbyrussell-modify.zsh-theme ~/.oh-my-zsh/custom/themes/

fzf fuzzy finder

git clone --depth=1 https://github.com/junegunn/fzf.git ~/.fzf
~/.fzf/install --key-bindings --completion --update-rc

Install zsh plugins (autosuggestions completions syntax-highlighting)

git clone --depth=1 https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
git clone --depth=1 https://github.com/zsh-users/zsh-completions ~/.oh-my-zsh/custom/plugins/zsh-completions
git clone --depth=1 https://github.com/zsh-users/zsh-syntax-highlighting ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting

rust and crates.io mirror config

http://mirrors.ustc.edu.cn/help/rust-static.html

Replace https://sh.rustup.rs RUSTUP_UPDATE_ROOT value to https://mirrors.ustc.edu.cn/rust-static/rustup

export RUSTUP_DIST_SERVER=https://mirrors.ustc.edu.cn/rust-static
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

# install nightly channel
rustup toolchain install nightly

# set nightly as default toolchain
rustup default nightly-x86_64-unknown-linux-gnu

# install cranelift
rustup component add rustc-codegen-cranelift-preview --toolchain nightly
# install and use mold https://github.com/rui314/mold
# add to add to $HOME/.cargo/config
[target.x86_64-unknown-linux-gnu]
rustflags = ["-C", "link-arg=-fuse-ld=$HOME/pkg/mold/bin/mold"]


# install and use cranelift for debug build https://github.com/rust-lang/rustc_codegen_cranelift
# add to $HOME/.cargo/config
[unstable]
codegen-backend = true

[profile.dev]
codegen-backend = "cranelift"


# add to $HOME/.cargo/config
[source.crates-io]
replace-with = 'ustc'

[source.ustc]
registry = "git://mirrors.ustc.edu.cn/crates.io-index"

Install pyenv

# pyenv build problems
# https://github.com/yyuu/pyenv/wiki/Common-build-problems
git clone --depth=1 https://github.com/yyuu/pyenv ~/.pyenv

pip mirror config

pip config set global.index-url https://mirrors.aliyun.com/pypi/simple
pip config set local.trusted-host mirrors.aliyun.com

set python3 as default

# works only on Ubuntu 20.04+
sudo apt install python-is-python3

npm mirror config

npm config set registry https://registry.npm.taobao.org
npm config set disturl https://npm.taobao.org/dist
npm config set electron_mirror https://npm.taobao.org/mirrors/electron

docker config

Docker CE 源使用帮助 — USTC Mirror Help 文档

sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common
curl -fsSL https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://mirrors.ustc.edu.cn/docker-ce/linux/ubuntu $(lsb_release -cs) stable"

sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io
# manager docker as current user
# warning: The docker group grants privileges equivalent to the root user.
sudo groupadd docker
sudo sudo usermod -aG docker $USER

# use offical docker mirror
# add this to /etc/docker/daemon.json
{"registry-mirrors":["https://registry.docker-cn.com/"]}

Import settings of iterm

Iterm2 -> Preferences -> General

At the bottom of the panel:

Choose Load preferences from a custom folder or URL:

Click the Browse button at left and choose my iterm2 folder.

Choose Save change to folder when iTerm2 quits.

Windows terminal

disable tab switcher

"useTabSwitcher": false

recover “alt+enter” “alt+left” “alt+right” “alt+up” “alt+down” keybinding for org-mode

"keybindings": [
  {"command":null,"keys":["alt+enter"]},
  {"command":null,"keys":["alt+left"]},
  {"command":null,"keys":["alt+right"]},
  {"command":null,"keys":["alt+up"]},
  {"command":null,"keys":["alt+down"]},
]

default config example

src/cascadia/TerminalApp/defaults.json

rcs's People

Contributors

sidereux avatar cobbled avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.