"$AXZSH_PLUGIN_D/$plugin"
"$ZSH_CUSTOM/$plugin"
"$AXZSH/plugins/$plugin"
+ "$AXZSH/default_plugins/$plugin"
"$AXZSH/core/$plugin"
); do
[[ ! -d "$dname" ]] && continue
typeset -U axzsh_default_plugins
if ! typeset +m axzsh_default_plugins | fgrep array >/dev/null 2>&1; then
axzsh_default_plugins=(
- byebye
- correction
- grep
- history
- less
- ls
- prompt
- ssh
- std_aliases
- std_env
- std_options
+ $AXZSH/default_plugins/*
)
fi
--- /dev/null
+# AX-ZSH: Alex' Modular ZSH Configuration
+# byebye.zlogout -- Say goodbye to interactive users
+
+[[ -o interactive ]] || return
+
+# Clear the console if it is a local terminal
+case `tty` in
+ /dev/tty[0-9]*|/dev/ttyS[0-9]*)
+ [[ -x /usr/bin/clear_console ]] \
+ && /usr/bin/clear_console --quiet \
+ || clear
+ ;;
+ *)
+ echo "Bye, bye, $LOGNAME!"
+esac
--- /dev/null
+# AX-ZSH: Alex' Modular ZSH Configuration
+# correction.zshrc: Setup correction
+
+for cmd (
+ apt
+ aptitude
+ brew
+ ebuild
+ gist
+ man
+ mkdir
+ mv
+ mysql
+ pkg_add
+ sudo
+); do
+ [[ -n $commands[$cmd] ]] \
+ && alias $cmd="nocorrect $cmd"
+done
+
+setopt correct_all
--- /dev/null
+# AX-ZSH: Alex' Modular ZSH Configuration
+# grep.zshrc: Setup grep
+
+# Make sure that "grep(1)" is installed
+(( $+commands[grep] )) || return
+
+grep-flag-available() {
+ echo | grep "$1" "" >/dev/null 2>&1
+}
+
+grep_options=""
+vcs_folders="{.bzr,.cvs,.git,.hg,.svn}"
+
+# Color
+if grep-flag-available "--color=auto"; then
+ grep_options+=" --color=auto"
+fi
+
+# Exclude VCS folders
+if grep-flag-available "--exclude-dir=.csv"; then
+ grep_options+=" --exclude-dir=$vcs_folders"
+elif grep-flag-available "--exclude=.csv"; then
+ grep_options+=" --exclude=$vcs_folders"
+fi
+
+[[ -n "$options" ]] && alias grep="grep${grep_options}"
+
+unfunction grep-flag-available
+unset grep_options
+unset vcs_folders
--- /dev/null
+# AX-ZSH: Alex' Modular ZSH Configuration
+# history.zshrc: Setup ZSH history
+
+if [[ -z "$HISTFILE" ]]; then
+ # Save history file in cache directory, if not already present
+ # in $ZDOTDIR/$HOME:
+ [ -r "${ZDOTDIR:-$HOME}/.zsh_history" ] \
+ && HISTFILE="${ZDOTDIR:-$HOME}/.zsh_history" \
+ || HISTFILE="$ZSH_CACHE_DIR/history"
+fi
+
+HISTSIZE=10000
+SAVEHIST=10000
+
+setopt append_history
+setopt extended_history
+setopt hist_expire_dups_first
+setopt hist_ignore_dups
+setopt hist_ignore_space
+setopt hist_verify
+setopt inc_append_history
+setopt share_history
+
+alias history='fc -il 1'
--- /dev/null
+# AX-ZSH: Alex' Modular ZSH Configuration
+# less.zprofile: Setup less
+
+# Make sure that "less(1)" is installed
+(( $+commands[less] )) || return
+
+export LESS="-FmRX"
+
+(( $+commands[lesspipe] )) && eval $(lesspipe)
--- /dev/null
+# AX-ZSH: Alex' Modular ZSH Configuration
+# ls.zshrc: Setup ls(1)
+
+# Check which ls-alike command to use
+if (( $+commands[gls] )); then
+ cmd="gls" # GNU ls (on NetBSD, for example)
+elif (( $+commands[colorls] )); then
+ cmd="colorls" # OpenBSD
+else
+ cmd="ls"
+fi
+
+if $cmd --color -d . >/dev/null 2>&1; then
+ alias ls="$cmd -F --color=tty"
+ return 0
+fi
+if $cmd -G -d . >/dev/null 2>&1; then
+ alias ls="$cmd -FG"
+ return 0
+fi
--- /dev/null
+# AX-ZSH: Alex' Modular ZSH Configuration
+# prompt.zlogin: Setup default prompts
+
+# Default prompt
+PS1='$(ax_logname_prompt)$(ax_hostname_prompt)%B%2~%b $(ax_vcs_prompt)%{$fg_no_bold[green]%}%B$%b%{$reset_color%} '
+
+# Prompt on right side
+RPS1="%(?..%{$fg_no_bold[red]%}%? ↵%{$reset_color%})"
--- /dev/null
+# AX-ZSH: Alex' Modular ZSH Configuration
+# ssh.zprofile: Setup (Open-) SSH
+
+# Make sure that "ssh(1)" is installed
+(( $+commands[ssh] )) || return
+
+unset ssh_cmd
+(( $+commands[ssh-q] )) && ssh_cmd="ssh-q"
+(( $+commands[ssh-wrapper] )) && ssh_cmd="ssh-wrapper"
+if [[ -n "$ssh_cmd" ]]; then
+ export GIT_SSH="$ssh_cmd"
+fi
+unset ssh_cmd
--- /dev/null
+# AX-ZSH: Alex' Modular ZSH Configuration
+# ssh.zshrc: Setup (Open-) SSH
+
+# Make sure that "ssh(1)" is installed
+(( $+commands[ssh] )) || return
+
+ssh_logname_prompt() {
+ [[ -n "$SSH_CLIENT" ]] || return 1
+ echo "$LOGNAME"
+ return 0
+}
+
+ax_logname_prompt_functions=($ax_logname_prompt_functions ssh_logname_prompt)
+
+ssh_hostname_prompt() {
+ [[ -n "$SSH_CLIENT" ]] || return 1
+ echo "$SHORT_HOST"
+ return 0
+}
+
+ax_hostname_prompt_functions=($ax_hostname_prompt_functions ssh_hostname_prompt)
--- /dev/null
+# AX-ZSH: Alex' Modular ZSH Configuration
+# std_aliases: Setup standard aliases
+
+alias ".."="cd .."
+
+alias "ll"="ls -hl"
+alias "l"="ll -a"
+
+alias lasth='last | head -n "$((LINES-1))"'
+alias lastf='last | grep -v "^$LOGNAME"'
--- /dev/null
+# AX-ZSH: Alex' Modular ZSH Configuration
+# std_env: Setup standard environment variables
+
+export MANWIDTH="80"
--- /dev/null
+# AX-ZSH: Alex' Modular ZSH Configuration
+# std_options.zshrc: Setup standard ZSH options
+
+# Change directories by just entering their names
+setopt auto_cd
+
+# Automatically push directories to the directory stack
+setopt autopushd
+setopt pushdignoredups
+
+# Recognize comments in interactive mode, too
+setopt interactivecomments
+++ /dev/null
-# AX-ZSH: Alex' Modular ZSH Configuration
-# byebye.zlogout -- Say goodbye to interactive users
-
-[[ -o interactive ]] || return
-
-# Clear the console if it is a local terminal
-case `tty` in
- /dev/tty[0-9]*|/dev/ttyS[0-9]*)
- [[ -x /usr/bin/clear_console ]] \
- && /usr/bin/clear_console --quiet \
- || clear
- ;;
- *)
- echo "Bye, bye, $LOGNAME!"
-esac
+++ /dev/null
-# AX-ZSH: Alex' Modular ZSH Configuration
-# correction.zshrc: Setup correction
-
-for cmd (
- apt
- aptitude
- brew
- ebuild
- gist
- man
- mkdir
- mv
- mysql
- pkg_add
- sudo
-); do
- [[ -n $commands[$cmd] ]] \
- && alias $cmd="nocorrect $cmd"
-done
-
-setopt correct_all
+++ /dev/null
-# AX-ZSH: Alex' Modular ZSH Configuration
-# grep.zshrc: Setup grep
-
-# Make sure that "grep(1)" is installed
-(( $+commands[grep] )) || return
-
-grep-flag-available() {
- echo | grep "$1" "" >/dev/null 2>&1
-}
-
-grep_options=""
-vcs_folders="{.bzr,.cvs,.git,.hg,.svn}"
-
-# Color
-if grep-flag-available "--color=auto"; then
- grep_options+=" --color=auto"
-fi
-
-# Exclude VCS folders
-if grep-flag-available "--exclude-dir=.csv"; then
- grep_options+=" --exclude-dir=$vcs_folders"
-elif grep-flag-available "--exclude=.csv"; then
- grep_options+=" --exclude=$vcs_folders"
-fi
-
-[[ -n "$options" ]] && alias grep="grep${grep_options}"
-
-unfunction grep-flag-available
-unset grep_options
-unset vcs_folders
+++ /dev/null
-# AX-ZSH: Alex' Modular ZSH Configuration
-# history.zshrc: Setup ZSH history
-
-if [[ -z "$HISTFILE" ]]; then
- # Save history file in cache directory, if not already present
- # in $ZDOTDIR/$HOME:
- [ -r "${ZDOTDIR:-$HOME}/.zsh_history" ] \
- && HISTFILE="${ZDOTDIR:-$HOME}/.zsh_history" \
- || HISTFILE="$ZSH_CACHE_DIR/history"
-fi
-
-HISTSIZE=10000
-SAVEHIST=10000
-
-setopt append_history
-setopt extended_history
-setopt hist_expire_dups_first
-setopt hist_ignore_dups
-setopt hist_ignore_space
-setopt hist_verify
-setopt inc_append_history
-setopt share_history
-
-alias history='fc -il 1'
+++ /dev/null
-# AX-ZSH: Alex' Modular ZSH Configuration
-# less.zprofile: Setup less
-
-# Make sure that "less(1)" is installed
-(( $+commands[less] )) || return
-
-export LESS="-FmRX"
-
-(( $+commands[lesspipe] )) && eval $(lesspipe)
+++ /dev/null
-# AX-ZSH: Alex' Modular ZSH Configuration
-# ls.zshrc: Setup ls(1)
-
-# Check which ls-alike command to use
-if (( $+commands[gls] )); then
- cmd="gls" # GNU ls (on NetBSD, for example)
-elif (( $+commands[colorls] )); then
- cmd="colorls" # OpenBSD
-else
- cmd="ls"
-fi
-
-if $cmd --color -d . >/dev/null 2>&1; then
- alias ls="$cmd -F --color=tty"
- return 0
-fi
-if $cmd -G -d . >/dev/null 2>&1; then
- alias ls="$cmd -FG"
- return 0
-fi
+++ /dev/null
-# AX-ZSH: Alex' Modular ZSH Configuration
-# prompt.zlogin: Setup default prompts
-
-# Default prompt
-PS1='$(ax_logname_prompt)$(ax_hostname_prompt)%B%2~%b $(ax_vcs_prompt)%{$fg_no_bold[green]%}%B$%b%{$reset_color%} '
-
-# Prompt on right side
-RPS1="%(?..%{$fg_no_bold[red]%}%? ↵%{$reset_color%})"
+++ /dev/null
-# AX-ZSH: Alex' Modular ZSH Configuration
-# ssh.zprofile: Setup (Open-) SSH
-
-# Make sure that "ssh(1)" is installed
-(( $+commands[ssh] )) || return
-
-unset ssh_cmd
-(( $+commands[ssh-q] )) && ssh_cmd="ssh-q"
-(( $+commands[ssh-wrapper] )) && ssh_cmd="ssh-wrapper"
-if [[ -n "$ssh_cmd" ]]; then
- export GIT_SSH="$ssh_cmd"
-fi
-unset ssh_cmd
+++ /dev/null
-# AX-ZSH: Alex' Modular ZSH Configuration
-# ssh.zshrc: Setup (Open-) SSH
-
-# Make sure that "ssh(1)" is installed
-(( $+commands[ssh] )) || return
-
-ssh_logname_prompt() {
- [[ -n "$SSH_CLIENT" ]] || return 1
- echo "$LOGNAME"
- return 0
-}
-
-ax_logname_prompt_functions=($ax_logname_prompt_functions ssh_logname_prompt)
-
-ssh_hostname_prompt() {
- [[ -n "$SSH_CLIENT" ]] || return 1
- echo "$SHORT_HOST"
- return 0
-}
-
-ax_hostname_prompt_functions=($ax_hostname_prompt_functions ssh_hostname_prompt)
+++ /dev/null
-# AX-ZSH: Alex' Modular ZSH Configuration
-# std_aliases: Setup standard aliases
-
-alias ".."="cd .."
-
-alias "ll"="ls -hl"
-alias "l"="ll -a"
-
-alias lasth='last | head -n "$((LINES-1))"'
-alias lastf='last | grep -v "^$LOGNAME"'
+++ /dev/null
-# AX-ZSH: Alex' Modular ZSH Configuration
-# std_env: Setup standard environment variables
-
-export MANWIDTH="80"
+++ /dev/null
-# AX-ZSH: Alex' Modular ZSH Configuration
-# std_options.zshrc: Setup standard ZSH options
-
-# Change directories by just entering their names
-setopt auto_cd
-
-# Automatically push directories to the directory stack
-setopt autopushd
-setopt pushdignoredups
-
-# Recognize comments in interactive mode, too
-setopt interactivecomments