add zshrc from company macbook
This commit is contained in:
29
zsh/.zshrc
Normal file
29
zsh/.zshrc
Normal file
@@ -0,0 +1,29 @@
|
||||
# --- Aliases ---
|
||||
alias ls="eza --icons -a --group-directories-first"
|
||||
alias glow="glow -t -l"
|
||||
|
||||
# --- Functions ---
|
||||
f() {
|
||||
FZF_DEFAULT_COMMAND='/opt/homebrew/bin/fd --type f --hidden --exclude .DS_Store' \
|
||||
fzf --style full \
|
||||
--padding 1,2 \
|
||||
--preview 'fzf-preview.sh {}' \
|
||||
--bind 'result:transform-list-label:
|
||||
if [[ -z $FZF_QUERY ]]; then
|
||||
echo " $FZF_MATCH_COUNT items "
|
||||
else
|
||||
echo " $FZF_MATCH_COUNT matches for [$FZF_QUERY] "
|
||||
fi
|
||||
' \
|
||||
--bind 'focus:transform-preview-label:[[ -n {} ]] && printf " Previewing [%s] " {}' \
|
||||
--bind 'focus:+transform-header:file --brief {} || echo "No file selected"' \
|
||||
--bind 'ctrl-r:change-list-label( Reloading the list )+reload(sleep 2; git ls-files)' \
|
||||
--color 'border:#aaaaaa,label:#cccccc' \
|
||||
--color 'preview-border:#9999cc,preview-label:#ccccff' \
|
||||
--color 'list-border:#669966,list-label:#99cc99' \
|
||||
--color 'input-border:#996666,input-label:#ffcccc' \
|
||||
--color 'header-border:#6699cc,header-label:#99ccff'
|
||||
}
|
||||
|
||||
# --- Auto Run Commands ---
|
||||
fastfetch
|
||||
Reference in New Issue
Block a user