forked from sorin-ionescu/prezto
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c15fd30
commit e16ed29
Showing
20 changed files
with
152 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,10 @@ | |
# Sorin Ionescu <[email protected]> | ||
# | ||
|
||
# | ||
# Options | ||
# | ||
|
||
setopt AUTO_CD # Auto changes to a directory without typing cd. | ||
setopt AUTO_PUSHD # Push the old directory onto the stack on cd. | ||
setopt PUSHD_IGNORE_DUPS # Do not store duplicates in the stack. | ||
|
@@ -18,7 +22,10 @@ setopt EXTENDED_GLOB # Use extended globbing syntax. | |
unsetopt CLOBBER # Do not overwrite existing files with > and >>. | ||
# Use >! and >>! to bypass. | ||
|
||
# | ||
# Aliases | ||
# | ||
|
||
alias d='dirs -v' | ||
for index ({1..9}) alias "$index"="cd +${index}"; unset index | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,30 +5,45 @@ | |
# Sorin Ionescu <[email protected]> | ||
# | ||
|
||
# | ||
# Smart URLs | ||
# | ||
|
||
autoload -Uz url-quote-magic | ||
zle -N self-insert url-quote-magic | ||
|
||
# | ||
# General | ||
# | ||
|
||
setopt BRACE_CCL # Allow brace character class list expansion. | ||
setopt RC_QUOTES # Allow 'Henry''s Garage' instead of 'Henry'\''s Garage'. | ||
unsetopt MAIL_WARNING # Don't print a warning message if a mail file has been accessed. | ||
|
||
# | ||
# Jobs | ||
# | ||
|
||
setopt LONG_LIST_JOBS # List jobs in the long format by default. | ||
setopt AUTO_RESUME # Attempt to resume existing job before creating a new process. | ||
setopt NOTIFY # Report status of background jobs immediately. | ||
unsetopt BG_NICE # Don't run all background jobs at a lower priority. | ||
unsetopt HUP # Don't kill jobs on shell exit. | ||
unsetopt CHECK_JOBS # Don't report on jobs when shell exit. | ||
|
||
# | ||
# Grep | ||
# | ||
|
||
if zstyle -t ':omz:environment:grep' color; then | ||
export GREP_COLOR='37;45' | ||
export GREP_OPTIONS='--color=auto' | ||
fi | ||
|
||
# | ||
# Termcap | ||
# | ||
|
||
if zstyle -t ':omz:environment:termcap' color; then | ||
export LESS_TERMCAP_mb=$'\E[01;31m' # Begins blinking. | ||
export LESS_TERMCAP_md=$'\E[01;31m' # Begins bold. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,10 +6,18 @@ | |
# Sorin Ionescu <[email protected]> | ||
# | ||
|
||
# | ||
# Variables | ||
# | ||
|
||
HISTFILE="$HOME/.zhistory" # The path to the history file. | ||
HISTSIZE=10000 # The maximum number of events to save in the internal history. | ||
SAVEHIST=10000 # The maximum number of events to save in the history file. | ||
|
||
# | ||
# Options | ||
# | ||
|
||
setopt BANG_HIST # Treat the '!' character specially during expansion. | ||
setopt EXTENDED_HISTORY # Write the history file in the ':start:elapsed;command' format. | ||
setopt INC_APPEND_HISTORY # Write to the history file immediately, not when the shell exits. | ||
|
@@ -23,7 +31,9 @@ setopt HIST_SAVE_NO_DUPS # Do not write a duplicate event to the history | |
setopt HIST_VERIFY # Do not execute immediately upon history expansion. | ||
setopt HIST_BEEP # Beep when accessing non-existent history. | ||
|
||
# | ||
# Aliases | ||
# | ||
|
||
# Lists the ten most used commands. | ||
alias history-stat="history . | awk '{print \$2}' | sort | uniq -c | sort -n -r | head" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,10 @@ | |
# Sorin Ionescu <[email protected]> | ||
# | ||
|
||
# | ||
# Aliases | ||
# | ||
|
||
# Disable color. | ||
if ! zstyle -t ':omz:module:pacman:yaourt' color; then | ||
alias pacman='pacman --nocolor' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,7 +36,9 @@ else | |
fi | ||
fi | ||
|
||
# | ||
# Aliases | ||
# | ||
|
||
# Bundler | ||
if (( $+commands[bundle] )); then | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.