Advertisement
Guest User

Untitled

a guest
Oct 21st, 2016
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 33.15 KB | None | 0 0
  1. # Path to your oh-my-zsh installation.
  2. export ZSH=/home/ignacio/.oh-my-zsh
  3.  
  4. # Set name of the theme to load.
  5. # Look in ~/.oh-my-zsh/themes/
  6. # Optionally, if you set this to "random", it'll load a random theme each
  7. # time that oh-my-zsh is loaded.
  8. ZSH_THEME="bira"
  9.  
  10. # Uncomment the following line to use case-sensitive completion.
  11. # CASE_SENSITIVE="true"
  12.  
  13. # Uncomment the following line to use hyphen-insensitive completion. Case
  14. # sensitive completion must be off. _ and - will be interchangeable.
  15. # HYPHEN_INSENSITIVE="true"
  16.  
  17. # Uncomment the following line to disable bi-weekly auto-update checks.
  18. # DISABLE_AUTO_UPDATE="true"
  19.  
  20. # Uncomment the following line to change how often to auto-update (in days).
  21. # export UPDATE_ZSH_DAYS=13
  22.  
  23. # Uncomment the following line to disable colors in ls.
  24. # DISABLE_LS_COLORS="true"
  25.  
  26. # Uncomment the following line to disable auto-setting terminal title.
  27. # DISABLE_AUTO_TITLE="true"
  28.  
  29. # Uncomment the following line to enable command auto-correction.
  30. # ENABLE_CORRECTION="true"
  31.  
  32. # Uncomment the following line to display red dots whilst waiting for completion.
  33. # COMPLETION_WAITING_DOTS="true"
  34.  
  35. # Uncomment the following line if you want to disable marking untracked files
  36. # under VCS as dirty. This makes repository status check for large repositories
  37. # much, much faster.
  38. # DISABLE_UNTRACKED_FILES_DIRTY="true"
  39.  
  40. # Uncomment the following line if you want to change the command execution time
  41. # stamp shown in the history command output.
  42. # The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
  43. # HIST_STAMPS="mm/dd/yyyy"
  44.  
  45. # Would you like to use another custom folder than $ZSH/custom?
  46. # ZSH_CUSTOM=/path/to/new-custom-folder
  47.  
  48. # Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
  49. # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
  50. # Example format: plugins=(rails git textmate ruby lighthouse)
  51. # Add wisely, as too many plugins slow down shell startup.
  52. plugins=(git colorize)
  53.  
  54. # User configuration
  55.  
  56. # export PATH="/usr/bin:/bin:/usr/sbin:/sbin:$PATH"
  57. # export MANPATH="/usr/local/man:$MANPATH"
  58.  
  59. source $ZSH/oh-my-zsh.sh
  60.  
  61. # You may need to manually set your language environment
  62. # export LANG=en_US.UTF-8
  63.  
  64. # Preferred editor for local and remote sessions
  65. # if [[ -n $SSH_CONNECTION ]]; then
  66. # export EDITOR='vim'
  67. # else
  68. # export EDITOR='mvim'
  69. # fi
  70.  
  71. # Compilation flags
  72. # export ARCHFLAGS="-arch x86_64"
  73.  
  74. # ssh
  75. # export SSH_KEY_PATH="~/.ssh/dsa_id"
  76.  
  77. # Set personal aliases, overriding those provided by oh-my-zsh libs,
  78. # plugins, and themes. Aliases can be placed here, though oh-my-zsh
  79. # users are encouraged to define aliases within the ZSH_CUSTOM folder.
  80. # For a full list of active aliases, run `alias`.
  81. #
  82. # Example aliases
  83. # alias zshconfig="mate ~/.zshrc"
  84. # alias ohmyzsh="mate ~/.oh-my-zsh"
  85. # # Exports {{{
  86. # export GITHUB_USER="hcsnemrebured"
  87. # export PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin # Reorder PATH so local bin is
  88. # first
  89. # export GREP_OPTIONS='--color=auto'
  90. # export GREP_COLOR='1;32'
  91. # export MANPAGER="less -X" # Don’t clear the screen after quitting a manual page
  92. # export EDITOR="vim"
  93. # export TERM="screen-256color"
  94. # export CLICOLOR=1
  95. # export LSCOLORS=Gxfxcxdxbxegedabagacad
  96. # export LS_COLORS=Gxfxcxdxbxegedabagacad
  97. # # }}}
  98. #
  99. # # Ruby {{{
  100. # function get_ruby_version() {
  101. # ruby -v | awk '{print $1 " " $2}'
  102. # }
  103. # # }}}
  104. #
  105. # # Tmux {{{
  106. # # Makes creating a new tmux session (with a specific name) easier
  107. # function tmuxopen() {
  108. # tmux attach -t $1
  109. # }
  110. #
  111. # # Makes creating a new tmux session (with a specific name) easier
  112. # function tmuxnew() {
  113. # tmux new -s $1
  114. # }
  115. #
  116. # # Makes deleting a tmux session easier
  117. # function tmuxkill() {
  118. # tmux kill-session -t $1
  119. # }
  120. # # }}}
  121. #
  122. # # Alias' {{{
  123. # alias vi="vim"
  124. # alias r="source ~/.zshrc"
  125. # alias tat='tmux new-session -As $(basename "$PWD" | tr . -)' # will attach if
  126. # session exists, or create a new session
  127. # alias tmuxsrc="tmux source-file ~/.tmux.conf"
  128. # alias tmuxkillall="tmux ls | cut -d : -f 1 | xargs -I {} tmux kill-session -t
  129. # {}" # tmux kill all sessions
  130. # alias ct="ctags -R --exclude=.git --exclude=node_modules"
  131. # alias dotfiles="ls -a | grep '^\.' | grep --invert-match '\.DS_Store\|\.$'"
  132. # # }}}
  133. #
  134. # # Auto Completion {{{
  135. # autoload -U compinit && compinit
  136. # zmodload -i zsh/complist
  137. #
  138. # # man zshcontrib
  139. # zstyle ':vcs_info:*' actionformats
  140. # '%F{5}(%f%s%F{5})%F{3}-%F{5}[%F{2}%b%F{3}|%F{1}%a%F{5}]%f '
  141. # zstyle ':vcs_info:*' formats '%F{5}(%f%s%F{5})%F{3}-%F{5}[%F{2}%b%F{5}]%f '
  142. # zstyle ':vcs_info:*' enable git #svn cvs
  143. #
  144. # # Enable completion caching, use rehash to clear
  145. # zstyle ':completion::complete:*' use-cache on
  146. # zstyle ':completion::complete:*' cache-path ~/.zsh/cache/$HOST
  147. #
  148. # # Fallback to built in ls colors
  149. # zstyle ':completion:*' list-colors ''
  150. #
  151. # # Make the list prompt friendly
  152. # zstyle ':completion:*' list-prompt '%SAt %p: Hit TAB for more, or the character
  153. # to insert%s'
  154. #
  155. # # Make the selection prompt friendly when there are a lot of choices
  156. # zstyle ':completion:*' select-prompt '%SScrolling active: current selection at
  157. # %p%s'
  158. #
  159. # # Add simple colors to kill
  160. # zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)
  161. # ([0-9a-z-]#)*=01;34=0=01'
  162. #
  163. # # list of completers to use
  164. # zstyle ':completion:*::::' completer _expand _complete _ignored _approximate
  165. # zstyle ':completion:*' menu select=1 _complete _ignored _approximate
  166. #
  167. # # match uppercase from lowercase
  168. # zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}'
  169. #
  170. # # offer indexes before parameters in subscripts
  171. # zstyle ':completion:*:*:-subscript-:*' tag-order indexes parameters
  172. #
  173. # # formatting and messages
  174. # zstyle ':completion:*' verbose yes
  175. # zstyle ':completion:*:descriptions' format '%B%d%b'
  176. # zstyle ':completion:*:messages' format '%d'
  177. # zstyle ':completion:*:warnings' format 'No matches for: %d'
  178. # zstyle ':completion:*:corrections' format '%B%d (errors: %e)%b'
  179. # zstyle ':completion:*' group-name ''
  180. #
  181. # # ignore completion functions (until the _ignored completer)
  182. # zstyle ':completion:*:functions' ignored-patterns '_*'
  183. # zstyle ':completion:*:scp:*' tag-order files users 'hosts:-host
  184. # hosts:-domain:domain hosts:-ipaddr"IP\ Address *'
  185. # zstyle ':completion:*:scp:*' group-order files all-files users hosts-domain
  186. # hosts-host hosts-ipaddr
  187. # zstyle ':completion:*:ssh:*' tag-order users 'hosts:-host hosts:-domain:domain
  188. # hosts:-ipaddr"IP\ Address *'
  189. # zstyle ':completion:*:ssh:*' group-order hosts-domain hosts-host users
  190. # hosts-ipaddr
  191. # zstyle '*' single-ignored show
  192. # # }}}
  193. #
  194. # # Key Bindings {{{
  195. # # Make the delete key (or Fn + Delete on the Mac) work instead of outputting a ~
  196. # bindkey '^?' backward-delete-char
  197. # bindkey "^[[3~" delete-char
  198. # bindkey "^[3;5~" delete-char
  199. # bindkey "\e[3~" delete-char
  200. #
  201. # # Make the `beginning/end` of line and `bck-i-search` commands work within tmux
  202. # bindkey '^R' history-incremental-search-backward
  203. # bindkey '^A' beginning-of-line
  204. # bindkey '^E' end-of-line
  205. # # }}}
  206. #
  207. # # Colours {{{
  208. # autoload colors; colors
  209. #
  210. # # The variables are wrapped in \%\{\%\}. This should be the case for every
  211. # # variable that does not contain space.
  212. # for COLOR in RED GREEN YELLOW BLUE MAGENTA CYAN BLACK WHITE; do
  213. # eval PR_$COLOR='%{$fg_no_bold[${(L)COLOR}]%}'
  214. # eval PR_BOLD_$COLOR='%{$fg_bold[${(L)COLOR}]%}'
  215. # done
  216. #
  217. # eval RESET='$reset_color'
  218. # export PR_RED PR_GREEN PR_YELLOW PR_BLUE PR_WHITE PR_BLACK
  219. # export PR_BOLD_RED PR_BOLD_GREEN PR_BOLD_YELLOW PR_BOLD_BLUE
  220. # export PR_BOLD_WHITE PR_BOLD_BLACK
  221. #
  222. # # Clear LSCOLORS
  223. # unset LSCOLORS
  224. # # }}}
  225. #
  226. # # Set Options {{{
  227. # # ===== Basics
  228. # setopt no_beep # don't beep on error
  229. # setopt interactive_comments # Allow comments even in interactive shells
  230. # (especially for Muness)
  231. #
  232. # # ===== Changing Directories
  233. # setopt auto_cd # If you type foo, and it isn't a command, and it is a
  234. # directory in your cdpath, go there
  235. # setopt cdablevarS # if argument to cd is the name of a parameter whose value
  236. # is a valid directory, it will become the current directory
  237. # setopt pushd_ignore_dups # don't push multiple copies of the same directory
  238. # onto the directory stack
  239. #
  240. # # ===== Expansion and Globbing
  241. # setopt extended_glob # treat #, ~, and ^ as part of patterns for filename
  242. # generation
  243. #
  244. # # ===== History
  245. # setopt append_history # Allow multiple terminal sessions to all append to
  246. # one zsh command history
  247. # setopt extended_history # save timestamp of command and duration
  248. # setopt inc_append_history # Add comamnds as they are typed, don't wait until
  249. # shell exit
  250. # setopt hist_expire_dups_first # when trimming history, lose oldest
  251. # duplicates first
  252. # setopt hist_ignore_dups # Do not write events to history that are duplicates
  253. # of previous events
  254. # setopt hist_ignore_space # remove command line from history list when first
  255. # character on the line is a space
  256. # setopt hist_find_no_dups # When searching history don't display results
  257. # already cycled through twice
  258. # setopt hist_reduce_blanks # Remove extra blanks from each command line being
  259. # added to history
  260. # setopt hist_verify # don't execute, just expand history
  261. # setopt share_history # imports new commands and appends typed commands to
  262. # history
  263. #
  264. # # ===== Completion
  265. # setopt always_to_end # When completing from the middle of a word, move the
  266. # cursor to the end of the word
  267. # setopt auto_menu # show completion menu on successive tab press. needs
  268. # unsetop menu_complete to work
  269. # setopt auto_name_dirs # any parameter that is set to the absolute name of a
  270. # directory immediately becomes a name for that directory
  271. # setopt complete_in_word # Allow completion from within a word/phrase
  272. #
  273. # unsetopt menu_complete # do not autoselect the first completion entry
  274. #
  275. # # ===== Correction
  276. # setopt correct # spelling correction for commands
  277. # setopt correctall # spelling correction for arguments
  278. #
  279. # # ===== Prompt
  280. # setopt prompt_subst # Enable parameter expansion, command substitution, and
  281. # arithmetic expansion in the prompt
  282. # setopt transient_rprompt # only show the rprompt on the current prompt
  283. #
  284. # # ===== Scripts and Functions
  285. # setopt multios # perform implicit tees or cats when multiple redirections
  286. # are attempted
  287. # # }}}
  288. #
  289. # # Prompt {{{
  290. # function virtualenv_info {
  291. # [ $VIRTUAL_ENV ] && echo '('`basename $VIRTUAL_ENV`') '
  292. # }
  293. #
  294. # function prompt_char {
  295. # git branch >/dev/null 2>/dev/null && echo '±' && return
  296. # hg root >/dev/null 2>/dev/null && echo '☿' && return
  297. # echo '○'
  298. # }
  299. #
  300. # function box_name {
  301. # [ -f ~/.box-name ] && cat ~/.box-name || hostname -s
  302. # }
  303. #
  304. # # http://blog.joshdick.net/2012/12/30/my_git_prompt_for_zsh.html
  305. # # copied from https://gist.github.com/4415470
  306. # # Adapted from code found at <https://gist.github.com/1712320>.
  307. #
  308. # #setopt promptsubst
  309. # autoload -U colors && colors # Enable colors in prompt
  310. #
  311. # # Modify the colors and symbols in these variables as desired.
  312. # GIT_PROMPT_SYMBOL="%{$fg[blue]%}±"
  313. # GIT_PROMPT_PREFIX="%{$fg[green]%} [%{$reset_color%}"
  314. # GIT_PROMPT_SUFFIX="%{$fg[green]%}]%{$reset_color%}"
  315. # GIT_PROMPT_AHEAD="%{$fg[red]%}ANUM%{$reset_color%}"
  316. # GIT_PROMPT_BEHIND="%{$fg[cyan]%}BNUM%{$reset_color%}"
  317. # GIT_PROMPT_MERGING="%{$fg_bold[magenta]%}⚡︎%{$reset_color%}"
  318. # GIT_PROMPT_UNTRACKED="%{$fg_bold[red]%}u%{$reset_color%}"
  319. # GIT_PROMPT_MODIFIED="%{$fg_bold[yellow]%}m%{$reset_color%}"
  320. # GIT_PROMPT_STAGED="%{$fg_bold[green]%}s%{$reset_color%}"
  321. #
  322. # # Show Git branch/tag, or name-rev if on detached head
  323. # function parse_git_branch() {
  324. # (git symbolic-ref -q HEAD || git name-rev --name-only
  325. # --no-undefined --always HEAD) 2> /dev/null
  326. # }
  327. #
  328. # # Show different symbols as appropriate for various Git
  329. # repository states
  330. # function parse_git_state() {
  331. # # Compose this value via multiple conditional appends.
  332. # local GIT_STATE=""
  333. #
  334. # local NUM_AHEAD="$(git log --oneline @{u}.. 2> /dev/null |
  335. # wc -l | tr -d ' ')"
  336. # if [ "$NUM_AHEAD" -gt 0 ]; then
  337. # GIT_STATE=$GIT_STATE${GIT_PROMPT_AHEAD//NUM/$NUM_AHEAD}
  338. # fi
  339. #
  340. # local NUM_BEHIND="$(git log --oneline ..@{u} 2>
  341. # /dev/null | wc -l | tr -d ' ')"
  342. # if [ "$NUM_BEHIND" -gt 0 ]; then
  343. # GIT_STATE=$GIT_STATE${GIT_PROMPT_BEHIND//NUM/$NUM_BEHIND}
  344. # fi
  345. #
  346. # local GIT_DIR="$(git rev-parse
  347. # --git-dir 2> /dev/null)"
  348. # if [ -n $GIT_DIR ] && test -r
  349. # $GIT_DIR/MERGE_HEAD; then
  350. # GIT_STATE=$GIT_STATE$GIT_PROMPT_MERGING
  351. # fi
  352. #
  353. # if [[ -n $(git ls-files
  354. # --other --exclude-standard
  355. # 2> /dev/null) ]]; then
  356. # GIT_STATE=$GIT_STATE$GIT_PROMPT_UNTRACKED
  357. # fi
  358. #
  359. # if ! git diff
  360. # --quiet 2>
  361. # /dev/null; then
  362. # GIT_STATE=$GIT_STATE$GIT_PROMPT_MODIFIED
  363. # fi
  364. #
  365. # if ! git
  366. # diff
  367. # --cached
  368. # --quiet 2>
  369. # /dev/null;
  370. # then
  371. # GIT_STATE=$GIT_STATE$GIT_PROMPT_STAGED
  372. # fi
  373. #
  374. # if
  375. # [[
  376. # -n
  377. # $GIT_STATE
  378. # ]];
  379. # then
  380. # echo
  381. # "$GIT_PROMPT_PREFIX$GIT_STATE$GIT_PROMPT_SUFFIX"
  382. # fi
  383. # }
  384. #
  385. # #
  386. # If
  387. # inside
  388. # a
  389. # Git
  390. # repository,
  391. # print
  392. # its
  393. # branch
  394. # and
  395. # state
  396. # function
  397. # git_prompt_string()
  398. # {
  399. # local
  400. # git_where="$(parse_git_branch)"
  401. # [
  402. # -n
  403. # "$git_where"
  404. # ]
  405. # &&
  406. # echo
  407. # "on
  408. # %{$fg[blue]%}${git_where#(refs/heads/|tags/)}$(parse_git_state)"
  409. # }
  410. #
  411. # function
  412. # current_pwd
  413. # {
  414. # echo
  415. # $(pwd
  416. # |
  417. # sed
  418. # -e
  419. # "s,^$HOME,~,")
  420. # }
  421. #
  422. # #
  423. # Original
  424. # prompt
  425. # with
  426. # User
  427. # name
  428. # and
  429. # Computer
  430. # name
  431. # included...
  432. # #
  433. # PROMPT='
  434. # #
  435. # ${PR_GREEN}%n%{$reset_color%}
  436. # %{$FG[239]%}at%{$reset_color%}
  437. # ${PR_BOLD_BLUE}$(box_name)%{$reset_color%}
  438. # %{$FG[239]%}in%{$reset_color%}
  439. # ${PR_BOLD_YELLOW}$(current_pwd)%{$reset_color%}
  440. # $(git_prompt_string)
  441. # #
  442. # $(prompt_char)
  443. # '
  444. #
  445. # PROMPT='
  446. # ${PR_GREEN}M.%{$reset_color%}
  447. # ${PR_BOLD_YELLOW}$(current_pwd)%{$reset_color%}
  448. # $(git_prompt_string)
  449. # $(prompt_char)
  450. # '
  451. #
  452. # export
  453. # SPROMPT="Correct
  454. # $fg[red]%R$reset_color
  455. # to
  456. # $fg[green]%r$reset_color
  457. # [(y)es
  458. # (n)o
  459. # (a)bort
  460. # (e)dit]?
  461. # "
  462. #
  463. # RPROMPT='${PR_GREEN}$(virtualenv_info)%{$reset_color%}
  464. # ${PR_RED}$(get_ruby_version)%{$reset_color%}'
  465. # #
  466. # }}}
  467. #
  468. # #
  469. # History
  470. # {{{
  471. # HISTSIZE=10000
  472. # SAVEHIST=9000
  473. # HISTFILE=~/.zsh_history
  474. # #
  475. # }}}
  476. #
  477. # #
  478. # Zsh
  479. # Hooks
  480. # {{{
  481. # function
  482. # precmd
  483. # {
  484. # #
  485. # vcs_info
  486. # #
  487. # Put
  488. # the
  489. # string
  490. # "hostname::/full/directory/path"
  491. # in
  492. # the
  493. # title
  494. # bar:
  495. # echo
  496. # -ne
  497. # "\e]2;$PWD\a"
  498. #
  499. # #
  500. # Put
  501. # the
  502. # parentdir/currentdir
  503. # in
  504. # the
  505. # tab
  506. # echo
  507. # -ne
  508. # "\e]1;$PWD:h:t/$PWD:t\a"
  509. # }
  510. #
  511. # function
  512. # set_running_app
  513. # {
  514. # printf
  515. # "\e]1;
  516. # $PWD:t:$(history
  517. # $HISTCMD
  518. # |
  519. # cut
  520. # -b7-
  521. # )
  522. # \a"
  523. # }
  524. #
  525. # function
  526. # preexec
  527. # {
  528. # set_running_app
  529. # }
  530. #
  531. # function
  532. # postexec
  533. # {
  534. # set_running_app
  535. # }
  536. # #
  537. # }}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement