diff --git a/zsh/.zshrc b/zsh/.zshrc new file mode 100644 index 0000000..47a8566 --- /dev/null +++ b/zsh/.zshrc @@ -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 \ No newline at end of file