mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
Merge e586a4a8ab into caa15548c1
This commit is contained in:
commit
27949c8a15
5 changed files with 17 additions and 11 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -6,3 +6,4 @@ custom/*
|
|||
!custom/example.zsh
|
||||
cache
|
||||
*.swp
|
||||
*~
|
||||
|
|
|
|||
|
|
@ -12,18 +12,18 @@ You can install this via the command line with either `curl` or `wget`.
|
|||
|
||||
h4. via `curl`
|
||||
|
||||
@curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh@
|
||||
@curl -L https://github.com/zyce/oh-my-zsh/raw/master/tools/install.sh | sh@
|
||||
|
||||
h4. via `wget`
|
||||
|
||||
@wget --no-check-certificate https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh@
|
||||
@wget --no-check-certificate https://github.com/zyce/oh-my-zsh/raw/master/tools/install.sh -O - | sh@
|
||||
|
||||
h3. The manual way
|
||||
|
||||
|
||||
1. Clone the repository
|
||||
|
||||
@git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh@
|
||||
@git clone git://github.com/zyce/oh-my-zsh.git ~/.oh-my-zsh@
|
||||
|
||||
2. Create a new zsh config by copying the zsh template we've provided.
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
## smart urls
|
||||
autoload -U url-quote-magic
|
||||
zle -N self-insert url-quote-magic
|
||||
if [ -f "/usr/share/zsh/functions/Zle/url-quote-magic" ] ; then
|
||||
autoload -U url-quote-magic && zle -N self-insert url-quote-magic
|
||||
fi
|
||||
|
||||
## file rename magick
|
||||
bindkey "^[m" copy-prev-shell-word
|
||||
|
|
|
|||
|
|
@ -28,6 +28,10 @@ function omz_termsupport_preexec {
|
|||
title "$CMD" "%100>...>$2%<<"
|
||||
}
|
||||
|
||||
autoload -U add-zsh-hook
|
||||
add-zsh-hook precmd omz_termsupport_precmd
|
||||
add-zsh-hook preexec omz_termsupport_preexec
|
||||
#autoload -U add-zsh-hook
|
||||
#add-zsh-hook precmd omz_termsupport_precmd
|
||||
#add-zsh-hook preexec omz_termsupport_preexec
|
||||
## Fix for zsh hook compatibility issues
|
||||
if [ -f "/usr/share/zsh/functions/Zle/add-zsh-hook" ] ; then
|
||||
autoload -U add-zsh-hook && add-zsh-hook precmd omz_termsupport_precmd && add-zsh-hook preexec omz_termsupport_preexec
|
||||
fi
|
||||
|
|
|
|||
|
|
@ -5,11 +5,11 @@ ZSH=$HOME/.oh-my-zsh
|
|||
# Look in ~/.oh-my-zsh/themes/
|
||||
# Optionally, if you set this to "random", it'll load a random theme each
|
||||
# time that oh-my-zsh is loaded.
|
||||
ZSH_THEME="robbyrussell"
|
||||
ZSH_THEME="juanghurtado"
|
||||
|
||||
# Example aliases
|
||||
# alias zshconfig="mate ~/.zshrc"
|
||||
# alias ohmyzsh="mate ~/.oh-my-zsh"
|
||||
alias zshconfig="nano ~/.zshrc"
|
||||
alias ohmyzsh="nano ~/.oh-my-zsh"
|
||||
|
||||
# Set to this to use case-sensitive completion
|
||||
# CASE_SENSITIVE="true"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue