Giter Site home page Giter Site logo

.config's Introduction

.config

install

git init
git remote add origin [email protected]:yyancy/.config.git
git pull origin master

# installing zplug
curl -sL --proto-redir -all,https https://raw.githubusercontent.com/zplug/installer/master/installer.zsh | zsh

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

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

# editing zshrc file
source ~/.config/zsh-config.zsh

source $ZSH/oh-my-zsh.sh

source ~/.config/profile.sh

# at the end of zshrc file
## autujump setup configuration
[[ -s /home/yancy/.autojump/etc/profile.d/autojump.sh ]] && source /home/yancy/.autojump/etc/profile.d/autojump.sh
autoload -U compinit && compinit -u

Initialize a new environment

curl -fsSL https://gitee.com/yyancyer/config/raw/master/init_basic_dev_env.sh -o init_basic.sh
bash init_basic.sh

install tmux and plugins

As of tmux3.1, the configuration location of tmux is in .config/tmux/tmux.conf first, install tmux version above 3.1.

wget https://github.com/tmux/tmux/releases/download/3.3a/tmux-3.3a.tar.gz
tar xvf tmux-VERSION.tar.gz
./configure && make
sudo make install

install tpm

git clone https://github.com/tmux-plugins/tpm ~/.config/tmux/plugins/tpm

later, using C-a I to install plugins

Tmux tips

# prefix l go to previous window
# prefix ; go to previous pane
# A-S-c reload config
bind l last-window

zsh change cursor shape

add the following code to the start of .zshrc file.

>$TTY echo -ne '\e[5 q' # Use beam shape cursor on startup.

export KEYTIMEOUT=1
# Change cursor shape for different vi modes.
function zle-keymap-select () {
    case $KEYMAP in
        vicmd) echo -ne '\e[1 q';;      # block
        viins|main) echo -ne '\e[5 q';; # beam
    esac
}
zle -N zle-keymap-select
zle-line-init() {
    # zle -K viins # initiate `vi insert` as keymap (can be removed if `bindkey -V` has been set elsewhere)
    echo -ne "\e[5 q"
}
zle -N zle-line-init
# preexec() { echo -ne '\e[5 q' ;} # Use beam shape cursor for each new prompt.

install homebrew

install dependancies

sudo apt-get install build-essential procps curl file git

install script

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Git tips

  1. remove files from git but leave it in directory git rm --cached FILENAME

  2. unstaged a staged changes (git add changes) git reset HEAD FILENAME git restore --staged FILENAME

  3. remove current changes git restore FILENAME

  4. undo last commit git reset --soft HEAD~1

other programs

  • exa
  • duf

.config's People

Contributors

yyancy avatar

Watchers

 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.