forked from ohmyzsh/ohmyzsh
-
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.
Merge remote-tracking branch 'upstream/master'
* upstream/master: (225 commits) Feat: add Salt completion plugin (ohmyzsh#7031) Add fzf plugin (ohmyzsh#6910) fasd: use xdg-open in o alias back again fasd: drop-in replace the autojump j alias (ohmyzsh#3860) jump: fix printf path output (ohmyzsh#7105) vi-mode: reset-prompt if zle is active (TRAPWINCH) fix nmap vuln category name (ohmyzsh#7044) Update kubectl.plugin.zsh (ohmyzsh#6636) Fix rvm-prompt usage in fino* themes (ohmyzsh#6477) vi-mode show indicator on zle-line-init and SIGWINCH (ohmyzsh#6449) execute mvnw with "mvn" when mvnw-file is present (ohmyzsh#6484) executing gradlew, when gradlew-file exists (ohmyzsh#6485) Fixed `fwl` function in `firewalld` plugin when `sources` used (ohmyzsh#7011) kubectl: add alias for `kubectl cp` (ohmyzsh#7068) Update golang.plugin.zsh (ohmyzsh#6750) Update brew.plugin.zsh (ohmyzsh#6947) Add aliases for kubectl nodes (ohmyzsh#7093) Clarify random theme setting (ohmyzsh#7090) [plugins/git] Updated git clone alias (ohmyzsh#6893) Updating 'sbcl' to 'sbcln' (ohmyzsh#7095) ...
- Loading branch information
Showing
226 changed files
with
6,540 additions
and
2,248 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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Put your custom themes in this folder. | ||
# Example: | ||
|
||
PROMPT="%{$fg[red]%}%n%{$reset_color%}@%{$fg[blue]%}%m %{$fg[yellow]%}%~ %{$reset_color%}%% " |
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
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 |
---|---|---|
@@ -1,24 +1,42 @@ | ||
## Command history configuration | ||
if [ -z "$HISTFILE" ]; then | ||
HISTFILE=$HOME/.zsh_history | ||
fi | ||
## History wrapper | ||
function omz_history { | ||
# Delete the history file if `-c' argument provided. | ||
# This won't affect the `history' command output until the next login. | ||
zparseopts -E c=clear l=list | ||
|
||
HISTSIZE=10000 | ||
SAVEHIST=10000 | ||
if [[ -n "$clear" ]]; then | ||
# if -c provided, clobber the history file | ||
echo -n >| "$HISTFILE" | ||
echo >&2 History file deleted. Reload the session to see its effects. | ||
elif [[ -n "$list" ]]; then | ||
# if -l provided, run as if calling `fc' directly | ||
builtin fc "$@" | ||
else | ||
# otherwise, call `fc -l 1` to show all available | ||
# history (and pass additional parameters) | ||
builtin fc "$@" -l 1 | ||
fi | ||
} | ||
|
||
# Show history | ||
# Timestamp format | ||
case $HIST_STAMPS in | ||
"mm/dd/yyyy") alias history='fc -fl 1' ;; | ||
"dd.mm.yyyy") alias history='fc -El 1' ;; | ||
"yyyy-mm-dd") alias history='fc -il 1' ;; | ||
*) alias history='fc -l 1' ;; | ||
"mm/dd/yyyy") alias history='omz_history -f' ;; | ||
"dd.mm.yyyy") alias history='omz_history -E' ;; | ||
"yyyy-mm-dd") alias history='omz_history -i' ;; | ||
"") alias history='omz_history' ;; | ||
*) alias history="omz_history -t '$HIST_STAMPS'" ;; | ||
esac | ||
|
||
setopt append_history | ||
setopt extended_history | ||
setopt hist_expire_dups_first | ||
setopt hist_ignore_dups # ignore duplication command history list | ||
setopt hist_ignore_space | ||
setopt hist_verify | ||
setopt inc_append_history | ||
setopt share_history # share command history data | ||
## History file configuration | ||
[ -z "$HISTFILE" ] && HISTFILE="$HOME/.zsh_history" | ||
HISTSIZE=50000 | ||
SAVEHIST=10000 | ||
|
||
## History command configuration | ||
setopt extended_history # record timestamp of command in HISTFILE | ||
setopt hist_expire_dups_first # delete duplicates first when HISTFILE size exceeds HISTSIZE | ||
setopt hist_ignore_dups # ignore duplicated commands history list | ||
setopt hist_ignore_space # ignore commands that start with space | ||
setopt hist_verify # show command with history expansion to user before running it | ||
setopt inc_append_history # add commands to HISTFILE in order of execution | ||
setopt share_history # share command history data |
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
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 |
---|---|---|
@@ -1,7 +1,17 @@ | ||
# Find where asdf should be installed. | ||
# Find where asdf should be installed | ||
ASDF_DIR="${ASDF_DIR:-$HOME/.asdf}" | ||
|
||
# Load asdf, if found. | ||
if [ -f $ASDF_DIR/asdf.sh ]; then | ||
. $ASDF_DIR/asdf.sh | ||
# If not found, check for Homebrew package | ||
if [[ ! -d $ASDF_DIR ]] && (( $+commands[brew] )); then | ||
ASDF_DIR="$(brew --prefix asdf)" | ||
fi | ||
|
||
# Load command | ||
if [[ -f "$ASDF_DIR/asdf.sh" ]]; then | ||
. "$ASDF_DIR/asdf.sh" | ||
|
||
# Load completions | ||
if [[ -f "$ASDF_DIR/completions/asdf.bash" ]]; then | ||
. "$ASDF_DIR/completions/asdf.bash" | ||
fi | ||
fi |
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.