Skip to content

Instantly share code, notes, and snippets.

@t-t-t-t-t
Created June 29, 2020 22:56
Show Gist options
  • Select an option

  • Save t-t-t-t-t/03ccfe9a63766e87ede052de7504d000 to your computer and use it in GitHub Desktop.

Select an option

Save t-t-t-t-t/03ccfe9a63766e87ede052de7504d000 to your computer and use it in GitHub Desktop.

Revisions

  1. @lx38 lx38 revised this gist Jan 9, 2018. 1 changed file with 3 additions and 5 deletions.
    8 changes: 3 additions & 5 deletions .zshrc
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    # install zplug if required
    ! [[ -d $HOME/.zplug ]] && curl -sL zplug.sh/installer | zsh
    ! [[ -d $HOME/.zplug ]] && curl -sL --proto-redir -all,https https://raw.githubusercontent.com/zplug/installer/master/installer.zsh| zsh

    # zplug init
    source ~/.zplug/init.zsh
    @@ -17,6 +17,7 @@ zplug "modules/utility", from:prezto
    zplug "modules/completion", from:prezto
    export HISTFILE=$ZPLUG_HOME/zhistory
    export LESSHISTFILE=-
    export HISTSIZE=500
    unsetopt AUTO_NAME_DIRS
    unsetopt CORRECT

    @@ -46,7 +47,4 @@ export PATH=$GOPATH/bin:$PATH

    # fzf
    source ~/.zplug/repos/junegunn/fzf/shell/key-bindings.zsh
    source ~/.zplug/repos/junegunn/fzf/shell/completion.zsh
    export FZF_DEFAULT_COMMAND='tree -if'
    export FZF_CTRL_T_COMMAND='tree -if'
    export FZF_ALT_C_COMMAND='tree -ifd'
    source ~/.zplug/repos/junegunn/fzf/shell/completion.zsh
  2. Igor L revised this gist Oct 30, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion .zshrc
    Original file line number Diff line number Diff line change
    @@ -25,7 +25,7 @@ export _Z_DATA=$ZPLUG_REPOS/rupa/z/data
    zplug "rupa/z", use:z.sh

    # fuzzy filtering
    zplug "junegunn/fzf", as:command, hook-build:"./install --bin", use:"bin/fzf-tmux"
    zplug "junegunn/fzf", as:command, hook-build:"./install --bin", use:"bin/{fzf-tmux,fzf}"

    # install plugins which haven't been installed yet
    if ! zplug check --verbose; then
  3. Igor L revised this gist Oct 30, 2016. 1 changed file with 21 additions and 12 deletions.
    33 changes: 21 additions & 12 deletions .zshrc
    Original file line number Diff line number Diff line change
    @@ -5,25 +5,27 @@
    source ~/.zplug/init.zsh

    # prezto
    export ZDOTDIR=$ZPLUG_REPOS
    export HISTFILE=$ZPLUG_HOME/zhistory
    zstyle ':prezto:load' pmodule environment prompt osx terminal editor history directory utility completion
    zstyle ':prezto:module:prompt' theme adam1
    zplug "sorin-ionescu/prezto", dir:"$ZPLUG_REPOS/.zprezto", as:plugin, use:"init.zsh"
    unsetopt AUTO_NAME_DIRS # disable shortening of pwd to match vars
    unsetopt CORRECT # disable correcting wrong imput
    export LESSHISTFILE=- # disable less history file
    zplug "modules/prompt", from:prezto
    zplug "modules/environment", from:prezto
    zplug "modules/osx", from:prezto
    zplug "modules/terminal", from:prezto
    zplug "modules/editor", from:prezto
    zplug "modules/history", from:prezto
    zplug "modules/directory", from:prezto
    zplug "modules/utility", from:prezto
    zplug "modules/completion", from:prezto
    export HISTFILE=$ZPLUG_HOME/zhistory
    export LESSHISTFILE=-
    unsetopt AUTO_NAME_DIRS
    unsetopt CORRECT

    # navigation
    export _Z_DATA=$ZPLUG_REPOS/rupa/z/data
    zplug "rupa/z", use:z.sh

    # fuzzy filtering
    # zplug "junegunn/fzf-bin", from:gh-r, as:command, rename-to:fzf, use:"*darwin*amd64*"
    zplug "junegunn/fzf", as:command, hook-build:"./install --bin", use:"bin", hook-load:". $ZPLUG_REPOS/junegunn/fzf/shell/*.zsh"
    export FZF_DEFAULT_COMMAND='tree -if'
    export FZF_CTRL_T_COMMAND='tree -if'
    export FZF_ALT_C_COMMAND='tree -ifd'
    zplug "junegunn/fzf", as:command, hook-build:"./install --bin", use:"bin/fzf-tmux"

    # install plugins which haven't been installed yet
    if ! zplug check --verbose; then
    @@ -41,3 +43,10 @@ zplug load
    # golang: initialize GOPATH
    export GOPATH=$HOME/Projects/Go
    export PATH=$GOPATH/bin:$PATH

    # fzf
    source ~/.zplug/repos/junegunn/fzf/shell/key-bindings.zsh
    source ~/.zplug/repos/junegunn/fzf/shell/completion.zsh
    export FZF_DEFAULT_COMMAND='tree -if'
    export FZF_CTRL_T_COMMAND='tree -if'
    export FZF_ALT_C_COMMAND='tree -ifd'
  4. Igor L revised this gist Oct 30, 2016. 1 changed file with 15 additions and 33 deletions.
    48 changes: 15 additions & 33 deletions .zshrc
    Original file line number Diff line number Diff line change
    @@ -1,44 +1,26 @@
    # set the prezto modules to load
    zstyle ':prezto:load' pmodule \
    'environment' \
    'terminal' \
    'editor' \
    'history' \
    'directory' \
    'spectrum' \
    'utility' \
    'completion' \
    'prompt' \
    'osx'

    # prezto settings
    zstyle ':prezto:module:terminal' auto-title 'yes'
    zstyle ':prezto:*:*' color 'yes'
    zstyle ':prezto:module:prompt' theme adam1
    # install zplug if required
    ! [[ -d $HOME/.zplug ]] && curl -sL zplug.sh/installer | zsh

    # install prezto if required
    ! [[ -d $HOME/.zprezto ]] \
    && git clone --recursive https://github.com/sorin-ionescu/prezto.git $HOME/.zprezto
    # zplug init
    source ~/.zplug/init.zsh

    # source prezto
    source $HOME/.zprezto/init.zsh
    # prezto
    export ZDOTDIR=$ZPLUG_REPOS
    export HISTFILE=$ZPLUG_HOME/zhistory
    zstyle ':prezto:load' pmodule environment prompt osx terminal editor history directory utility completion
    zstyle ':prezto:module:prompt' theme adam1
    zplug "sorin-ionescu/prezto", dir:"$ZPLUG_REPOS/.zprezto", as:plugin, use:"init.zsh"
    unsetopt AUTO_NAME_DIRS # disable shortening of pwd to match vars
    unsetopt CORRECT # disable correcting wrong imput
    export LESSHISTFILE=- # disable less history file

    # install zplug if required
    ! [[ -d $HOME/.zplug ]] \
    && git clone https://github.com/b4b4r07/zplug $HOME/.zplug

    # zplug init
    source ~/.zplug/zplug
    zplug "b4b4r07/zplug"
    zplug "Tarrasch/zsh-bd"
    zplug "rupa/z", of:z.sh
    # navigation
    export _Z_DATA=$ZPLUG_REPOS/rupa/z/data
    zplug "rupa/z", use:z.sh

    # fuzzy filtering
    zplug "junegunn/fzf-bin", as:command, from:gh-r, file:fzf-tmux, of:"*darwin*amd64*"
    zplug "junegunn/fzf", of:"shell/*.zsh"
    # zplug "junegunn/fzf-bin", from:gh-r, as:command, rename-to:fzf, use:"*darwin*amd64*"
    zplug "junegunn/fzf", as:command, hook-build:"./install --bin", use:"bin", hook-load:". $ZPLUG_REPOS/junegunn/fzf/shell/*.zsh"
    export FZF_DEFAULT_COMMAND='tree -if'
    export FZF_CTRL_T_COMMAND='tree -if'
    export FZF_ALT_C_COMMAND='tree -ifd'
  5. Igor L revised this gist Feb 20, 2016. 1 changed file with 49 additions and 29 deletions.
    78 changes: 49 additions & 29 deletions .zshrc
    Original file line number Diff line number Diff line change
    @@ -1,41 +1,61 @@
    source ~/.zplug/zplug
    zplug "b4b4r07/zplug"
    # set the prezto modules to load
    zstyle ':prezto:load' pmodule \
    'environment' \
    'terminal' \
    'editor' \
    'history' \
    'directory' \
    'spectrum' \
    'utility' \
    'completion' \
    'prompt' \
    'osx'

    # prezto settings
    zstyle ':prezto:module:terminal' auto-title 'yes'
    zstyle ':prezto:*:*' color 'yes'
    zstyle ':prezto:module:prompt' theme adam1

    # Make sure you use double quotes
    zplug "zsh-users/zsh-history-substring-search"
    # install prezto if required
    ! [[ -d $HOME/.zprezto ]] \
    && git clone --recursive https://github.com/sorin-ionescu/prezto.git $HOME/.zprezto

    # Set priority to load command like a nice command
    # e.g., zsh-syntax-highlighting must be loaded
    # after executing compinit command and sourcing other plugins
    # zplug "zsh-users/zsh-syntax-highlighting", nice:10
    # ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets pattern cursor root line)
    # source prezto
    source $HOME/.zprezto/init.zsh
    unsetopt AUTO_NAME_DIRS # disable shortening of pwd to match vars
    unsetopt CORRECT # disable correcting wrong imput
    export LESSHISTFILE=- # disable less history file

    # Fuzzy Filtering
    # install zplug if required
    ! [[ -d $HOME/.zplug ]] \
    && git clone https://github.com/b4b4r07/zplug $HOME/.zplug

    # zplug init
    source ~/.zplug/zplug
    zplug "b4b4r07/zplug"
    zplug "Tarrasch/zsh-bd"
    zplug "rupa/z", of:z.sh

    # fuzzy filtering
    zplug "junegunn/fzf-bin", as:command, from:gh-r, file:fzf-tmux, of:"*darwin*amd64*"
    zplug "junegunn/fzf", of:"shell/*.zsh"
    export FZF_DEFAULT_COMMAND='tree -if'
    export FZF_CTRL_T_COMMAND='tree -if'
    export FZF_ALT_C_COMMAND='tree -ifd'

    # Prezto modules
    zplug "sorin-ionescu/prezto", of:"modules/{directory,history,completion}/init.zsh"

    # Prompt Theme
    if [[ "$TERM" != (dumb|linux|*bsd*) ]] then
    autoload -Uz promptinit && promptinit
    setopt prompt_subst
    prompt adam1
    else
    prompt 'off'
    fi

    # Install plugins if there are plugins that have not been installed
    # install plugins which haven't been installed yet
    if ! zplug check --verbose; then
    printf "Install? [y/N]: "
    if read -q; then
    echo; zplug install
    fi
    printf "Install? [y/N]: "
    if read -q; then
    echo; zplug install
    else
    echo
    fi
    fi

    # Then, source plugins and add commands to $PATH
    zplug load
    # load zplug
    zplug load

    # golang: initialize GOPATH
    export GOPATH=$HOME/Projects/Go
    export PATH=$GOPATH/bin:$PATH
  6. Igor L revised this gist Feb 15, 2016. 1 changed file with 2 additions and 4 deletions.
    6 changes: 2 additions & 4 deletions .zshrc
    Original file line number Diff line number Diff line change
    @@ -24,8 +24,7 @@ zplug "sorin-ionescu/prezto", of:"modules/{directory,history,completion}/init.zs
    if [[ "$TERM" != (dumb|linux|*bsd*) ]] then
    autoload -Uz promptinit && promptinit
    setopt prompt_subst
    zplug "sorin-ionescu/prezto", of:"modules/prompt/functions/prompt_steeef_setup"

    prompt adam1
    else
    prompt 'off'
    fi
    @@ -39,5 +38,4 @@ if ! zplug check --verbose; then
    fi

    # Then, source plugins and add commands to $PATH
    zplug load
    prompt adam1
    zplug load
  7. Igor L created this gist Feb 15, 2016.
    43 changes: 43 additions & 0 deletions .zshrc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,43 @@
    source ~/.zplug/zplug
    zplug "b4b4r07/zplug"

    # Make sure you use double quotes
    zplug "zsh-users/zsh-history-substring-search"

    # Set priority to load command like a nice command
    # e.g., zsh-syntax-highlighting must be loaded
    # after executing compinit command and sourcing other plugins
    # zplug "zsh-users/zsh-syntax-highlighting", nice:10
    # ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets pattern cursor root line)

    # Fuzzy Filtering
    zplug "junegunn/fzf-bin", as:command, from:gh-r, file:fzf-tmux, of:"*darwin*amd64*"
    zplug "junegunn/fzf", of:"shell/*.zsh"
    export FZF_DEFAULT_COMMAND='tree -if'
    export FZF_CTRL_T_COMMAND='tree -if'
    export FZF_ALT_C_COMMAND='tree -ifd'

    # Prezto modules
    zplug "sorin-ionescu/prezto", of:"modules/{directory,history,completion}/init.zsh"

    # Prompt Theme
    if [[ "$TERM" != (dumb|linux|*bsd*) ]] then
    autoload -Uz promptinit && promptinit
    setopt prompt_subst
    zplug "sorin-ionescu/prezto", of:"modules/prompt/functions/prompt_steeef_setup"

    else
    prompt 'off'
    fi

    # Install plugins if there are plugins that have not been installed
    if ! zplug check --verbose; then
    printf "Install? [y/N]: "
    if read -q; then
    echo; zplug install
    fi
    fi

    # Then, source plugins and add commands to $PATH
    zplug load
    prompt adam1