# Created by newuser for 5.8.1
# custom options for typewritten, Global Setting
export TYPEWRITTEN_PROMPT_LAYOUT="pure_verbose"
export TYPEWRITTEN_COLOR_MAPPINGS="primary:white;secondary:white"
export TYPEWRITTEN_COLORS="arrow:white;symbol:white"
export TYPEWRITTEN_SYMBOL=""
export TYPEWRITTEN_ARROW_SYMBOL=""
export TYPEWRITTEN_CURSOR="underscore"

# Aliasses
alias alaconfig="nvim ~/.config/alacritty/alacritty.yml"
alias zshconfig="nvim ~/.zshrc"
alias kittyconfig="nvim ~/.config/kitty/kitty.conf"
alias tmuxconfig="nvim ~/.tmux.conf"
alias nvimconfig="nvim ~/.config/nvim/init.vim"
alias rangerconfig="nvim ~/.config/ranger/rc.conf"
alias nvimplugin="nvim ~/.config/nvim/vim-plug/plugins.vim"
alias luaconfig="nvim ~/.config/nvim/lua/caiinz/init.lua"

# sets typewritten as default, GLOBAL Setting
fpath+=$HOME/.zsh/typewritten
autoload -U promptinit; promptinit
prompt typewritten

# Useful aliasses with exa and icons
# Note: if using WSL2 Place these alisses all the way at the end!
# alias la="eza --long --header --icons -a -l"
# alias ls="eza --long --header --icons -a"
alias vi="nvim"
alias cat="bat"
alias lg="lazygit"
alias vc="code"
alias c='clear' # clear terminal
alias l='eza -lh  --icons=auto' # long list
alias ls='eza -1   --icons=auto' # short list
alias ll='eza -lha --icons=auto --sort=name --group-directories-first' # long list all
alias ld='eza -lhD --icons=auto' # long list dirs
alias lt='eza --icons=auto --tree' # list folder as tree

# Handy change dir shortcuts
alias ..='cd ..'
alias ...='cd ../..'
alias .3='cd ../../..'
alias .4='cd ../../../..'
alias .5='cd ../../../../..'

# source antidote, zsh plugin manager, added Jan 2024
source ${ZDOTDIR:-~}/.antidote/antidote.zsh

# note: make sure you have a file call .zsh_plugins.txt with all pluggins typed in it

# initialize plugins statically with ${ZDOTDIR:-~}/.zsh_plugins.txt
antidote load
