Better iTerm support (#129)

This commit is contained in:
Cyryl Płotnicki 2017-08-22 09:15:02 +01:00 committed by GitHub
parent 163916387a
commit df54203d74
6 changed files with 39720 additions and 49 deletions

View file

@ -1,4 +1,4 @@
export TERM="xterm-256color"
export GOPATH=`realpath "$HOME/go"`
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
export PATH=$HOME/tools:$PATH

@ -1 +1 @@
Subproject commit 4f19700919c8ebbaf75755fc0d03716d13183f49
Subproject commit 83ab314b77d7e6bd92b7aed6275ad03018b378c1

View file

@ -42,7 +42,8 @@ zstyle ':prezto:load' pmodule \
#
# Set the query found color.
# zstyle ':prezto:module:autosuggestions:color' found ''
zstyle ':prezto:module:autosuggestions' color 'yes'
zstyle ':prezto:module:autosuggestions:color' found 'fg=240'
#
# Editor

View file

@ -1,72 +1,28 @@
#
# Executes commands at login pre-zshrc.
#
# Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
#
# Browser
#
if [[ "$OSTYPE" == darwin* ]]; then
export BROWSER='open'
fi
#
# Editors
#
export EDITOR='vim'
export VISUAL='vim'
export PAGER='less'
#
# Language
#
if [[ -z "$LANG" ]]; then
export LANG='en_GB.UTF-8'
fi
#
# Paths
#
# Ensure path arrays do not contain duplicates.
typeset -gU cdpath fpath mailpath path
# Set the the list of directories that cd searches.
# cdpath=(
# $cdpath
# )
# Set the list of directories that Zsh searches for programs.
path=(
/usr/local/{bin,sbin}
$path
)
#
# Less
#
# Set the default Less options.
# Mouse-wheel scrolling has been disabled by -X (disable screen clearing).
# Remove -X and -F (exit if the content fits on one screen) to enable it.
export LESS='-F -g -i -M -R -S -w -X -z-4'
# Set the Less input preprocessor.
# Try both `lesspipe` and `lesspipe.sh` as either might exist on a system.
if (( $#commands[(i)lesspipe(|.sh)] )); then
export LESSOPEN="| /usr/bin/env $commands[(i)lesspipe(|.sh)] %s 2>&-"
fi
#
# Temporary Files
#
if [[ ! -d "$TMPDIR" ]]; then
export TMPDIR="/tmp/$LOGNAME"
mkdir -p -m 700 "$TMPDIR"

3
.zshrc
View file

@ -4,7 +4,7 @@ fi
COMPLETION_WAITING_DOTS="true"
plugins=(vi-mode svn git python zsh-syntax-highlighting history-substring-search)
plugins=(vi-mode svn git python syntax-highlighting history-substring-search spectrum sshi prompt gpg autosuggestions)
HISTFILE=~/.histfile
HISTSIZE=10240
@ -37,5 +37,4 @@ fi
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
# added by travis gem
[ -f /home/cyryl/.travis/travis.sh ] && source /home/cyryl/.travis/travis.sh

File diff suppressed because it is too large Load diff