mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-13 03:12:21 +01:00
Merge remote-tracking branch 'blessed/master'
* blessed/master: Fast installation time by shallow copying git repo Fix Plugin commands Update django.plugin.zsh Update /home/srj/.oh-my-zsh/cache references Allow custom cache dir
This commit is contained in:
commit
94c8613207
7 changed files with 26 additions and 18 deletions
|
|
@ -38,7 +38,7 @@ cdpath=(.)
|
|||
|
||||
# Use caching so that commands like apt and dpkg complete are useable
|
||||
zstyle ':completion::complete:*' use-cache 1
|
||||
zstyle ':completion::complete:*' cache-path $ZSH/cache/
|
||||
zstyle ':completion::complete:*' cache-path $ZSH_CACHE_DIR
|
||||
|
||||
# Don't complete uninteresting users
|
||||
zstyle ':completion:*:*:*:users' ignored-patterns \
|
||||
|
|
|
|||
|
|
@ -14,6 +14,13 @@ if [[ -z "$ZSH_CUSTOM" ]]; then
|
|||
ZSH_CUSTOM="$ZSH/custom"
|
||||
fi
|
||||
|
||||
# Set ZSH_CACHE_DIR to the path where cache files sould be created
|
||||
# or else we will use the default cache/
|
||||
if [[ -z "$ZSH_CACHE_DIR" ]]; then
|
||||
ZSH_CACHE_DIR="$ZSH/cache/"
|
||||
fi
|
||||
|
||||
|
||||
# Load all of the config files in ~/oh-my-zsh that end in .zsh
|
||||
# TIP: Add files you don't want in git to .gitignore
|
||||
for config_file ($ZSH/lib/*.zsh); do
|
||||
|
|
|
|||
|
|
@ -236,5 +236,6 @@ _managepy() {
|
|||
|
||||
compdef _managepy manage.py
|
||||
compdef _managepy django
|
||||
compdef _managepy django-admin
|
||||
compdef _managepy django-admin.py
|
||||
compdef _managepy django-manage
|
||||
|
|
|
|||
|
|
@ -4,8 +4,8 @@
|
|||
|
||||
# Flag indicating if we've previously jumped to last directory.
|
||||
typeset -g ZSH_LAST_WORKING_DIRECTORY
|
||||
mkdir -p "$ZSH/cache"
|
||||
local cache_file="$ZSH/cache/last-working-dir"
|
||||
mkdir -p $ZSH_CACHE_DIR
|
||||
local cache_file="$ZSH_CACHE_DIR/last-working-dir"
|
||||
|
||||
# Updates the last directory once directory is changed.
|
||||
function chpwd() {
|
||||
|
|
|
|||
|
|
@ -52,19 +52,19 @@ alias wpmlo='wp menu location'
|
|||
# Option
|
||||
|
||||
# Plugin
|
||||
alias wppa='activate'
|
||||
alias wppda='deactivate'
|
||||
alias wppd='delete'
|
||||
alias wppg='get'
|
||||
alias wppi='install'
|
||||
alias wppis='is-installed'
|
||||
alias wppl='list'
|
||||
alias wppp='path'
|
||||
alias wpps='search'
|
||||
alias wppst='status'
|
||||
alias wppt='toggle'
|
||||
alias wppu='uninstall'
|
||||
alias wppu='update'
|
||||
alias wppa='wp plugin activate'
|
||||
alias wppda='wp plugin deactivate'
|
||||
alias wppd='wp plugin delete'
|
||||
alias wppg='wp plugin get'
|
||||
alias wppi='wp plugin install'
|
||||
alias wppis='wp plugin is-installed'
|
||||
alias wppl='wp plugin list'
|
||||
alias wppp='wp plugin path'
|
||||
alias wpps='wp plugin search'
|
||||
alias wppst='wp plugin status'
|
||||
alias wppt='wp plugin toggle'
|
||||
alias wppu='wp plugin uninstall'
|
||||
alias wppu='wp plugin update'
|
||||
|
||||
# Post
|
||||
alias wppoc='wp post create'
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
# reload zshrc
|
||||
function src()
|
||||
{
|
||||
local cache="$ZSH/cache"
|
||||
local cache=$ZSH_CACHE_DIR
|
||||
autoload -U compinit zrecompile
|
||||
compinit -d "$cache/zcomp-$HOST"
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ if [ -d "$ZSH" ]; then
|
|||
fi
|
||||
|
||||
echo "\033[0;34mCloning Oh My Zsh...\033[0m"
|
||||
hash git >/dev/null 2>&1 && env git clone https://github.com/robbyrussell/oh-my-zsh.git $ZSH || {
|
||||
hash git >/dev/null 2>&1 && env git clone --depth=1 https://github.com/robbyrussell/oh-my-zsh.git $ZSH || {
|
||||
echo "git not installed"
|
||||
exit
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue