Skip to content

Instantly share code, notes, and snippets.

@retrage
Last active August 29, 2015 14:05
Show Gist options
  • Save retrage/83a7d8f5fd6401bd6515 to your computer and use it in GitHub Desktop.
Save retrage/83a7d8f5fd6401bd6515 to your computer and use it in GitHub Desktop.
This gist updates my vimrc and zshrc.
#!/bin/sh
cd ~/src/83a7d8f5fd6401bd6515
echo "Updating vimrc and zshrc: \c"
git pull
cp .vimrc ~/.vimrc
cp .zshrc ~/.zshrc
# cp updaterc.sh ~/updaterc-next.sh
# chmod 764 ~/updaterc.sh
syntax on
filetype indent plugin on
set tabstop=8 expandtab shiftwidth=4 softtabstop=4
set number
set mouse=
set nocompatible
set incsearch
set clipboard=unnamed,autoselect
# ./updaterc.sh
autoload -U compinit
compinit
# autoload predict-on
# predict-on
bindkey -v
setopt auto_pushd
setopt correct
HISTFILE=~/.zsh_history
HISTSIZE=50000
SAVEHIST=50000
setopt hist_ignore_dups
setopt share_history
export LANG=ja_JP.UTF-8
#case ${UID} in
# 0)
PROMPT="%B%n@%m$%b "
SPROMPT="%B%R -> %r ? [n,y,a,e]%b"
RPROMPT="[%~]"
# *)
alias ls="ls --color=auto"
alias grep="grep --color=auto"
alias ll="ls -alF"
#!/bin/sh
cd ~/src/83a7d8f5fd6401bd6515
echo "Updating vimrc and zshrc: \c"
git pull
cp .vimrc ~/
cp .zshrc ~/
cp updaterc.sh ~/
chmod 764 ~/updaterc.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment