feat(zinit): integrate zinit for improved shell configuration #1
No files matched your search
@@ -36,4 +36,3 @@ zinit is-snippet id-as for \
|
|||||||
$ZDOTDIR/snippets/aliases \
|
$ZDOTDIR/snippets/aliases \
|
||||||
$ZDOTDIR/snippets/options \
|
$ZDOTDIR/snippets/options \
|
||||||
$ZDOTDIR/snippets/bin
|
$ZDOTDIR/snippets/bin
|
||||||
|
|
||||||
@@ -2,15 +2,15 @@
|
|||||||
|
|
||||||
# Modern alternatives to traditional commands
|
# Modern alternatives to traditional commands
|
||||||
alias cat='bat'
|
alias cat='bat'
|
||||||
alias ls='lsd'
|
alias ls='lsd -A'
|
||||||
alias ll='lsd -l'
|
alias la='lsd -lA'
|
||||||
alias la='lsd -la'
|
|
||||||
alias tree='lsd --tree'
|
alias tree='lsd --tree'
|
||||||
alias nano='micro'
|
alias nano='micro'
|
||||||
alias fetch='fastfetch'
|
alias fetch='fastfetch'
|
||||||
|
|
||||||
# Git shortcuts
|
# Git shortcuts
|
||||||
alias g='git'
|
alias g='git'
|
||||||
|
alias gs='git status -sb'
|
||||||
alias ga='git add'
|
alias ga='git add'
|
||||||
alias gc='git commit'
|
alias gc='git commit'
|
||||||
alias gp='git push'
|
alias gp='git push'
|
||||||
|
|||||||
@@ -8,11 +8,8 @@ setopt MENU_COMPLETE
|
|||||||
setopt EXTENDED_GLOB
|
setopt EXTENDED_GLOB
|
||||||
setopt INTERACTIVE_COMMENTS
|
setopt INTERACTIVE_COMMENTS
|
||||||
setopt APPEND_HISTORY
|
setopt APPEND_HISTORY
|
||||||
|
setopt PUSHD_IGNORE_DUPS
|
||||||
|
|
||||||
HISTFILE="${ZDOTDIR:-$HOME}/.zsh_history"
|
|
||||||
HISTSIZE=5000000
|
|
||||||
SAVEHIST=5000000
|
|
||||||
HIST_STAMPS="dd.mm.yyyy"
|
|
||||||
setopt BANG_HIST # Treat the '!' character specially during expansion.
|
setopt BANG_HIST # Treat the '!' character specially during expansion.
|
||||||
setopt EXTENDED_HISTORY # Write the history file in the ":start:elapsed;command" format.
|
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.
|
setopt INC_APPEND_HISTORY # Write to the history file immediately, not when the shell exits.
|
||||||
@@ -26,4 +23,8 @@ setopt HIST_SAVE_NO_DUPS # Don't write duplicate entries in the history
|
|||||||
setopt HIST_REDUCE_BLANKS # Remove superfluous blanks before recording entry.
|
setopt HIST_REDUCE_BLANKS # Remove superfluous blanks before recording entry.
|
||||||
setopt HIST_VERIFY # Don't execute immediately upon history expansion.
|
setopt HIST_VERIFY # Don't execute immediately upon history expansion.
|
||||||
|
|
||||||
|
HISTFILE="${ZDOTDIR:-$HOME}/.zsh_history"
|
||||||
|
HISTSIZE=5000000
|
||||||
|
SAVEHIST=5000000
|
||||||
|
|
||||||
zstyle ':fzf-tab:complete:cd:*' fzf-preview 'lsd -1 --color=always --icon=always $realpath'
|
zstyle ':fzf-tab:complete:cd:*' fzf-preview 'lsd -1 --color=always --icon=always $realpath'
|
||||||
Reference in new issue
Block a user