# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc. # Initialization code that may require console input (password prompts, [y/n] # confirmations, etc.) must go above this block; everything else may go below. if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" fi # Created by Zap installer [ -f "${XDG_DATA_HOME:-$HOME/.local/share}/zap/zap.zsh" ] && source "${XDG_DATA_HOME:-$HOME/.local/share}/zap/zap.zsh" # plug "zsh-users/zsh-autosuggestions" # plug "zap-zsh/supercharge" # plug "zap-zsh/zap-prompt" plug "romkatv/powerlevel10k" plug "$HOME/.config/zsh/keybindings.zsh" plug "wintermi/zsh-lsd" # Load and initialise completion system autoload -Uz compinit compinit export ARM_TOOLCHAIN=/storage/Shared/Documents/toolchains/arm-gnu-toolchain-11.3.rel1-x86_64-arm-none-eabi/bin export ARM_TOOLCHAIN_HF=/storage/Shared/Documents/toolchains/arm-gnu-toolchain-11.3.rel1-x86_64-arm-none-linux-gnueabihf/bin zstyle ':completion::complete:*' use-cache 1 zstyle ':completion:*' insert-tab false setopt noautomenu setopt nomenucomplete . "$HOME/.cargo/env" . "$HOME/.local/env" . "$HOME/.config/emacs/env" if [ -d ~/.pscripts ];then export PATH="$HOME/.pscripts:$PATH" fi alias ls="lsd -AFlh" LS_COLORS='di=1;35:fi=0:ln=31:pi=5:so=5:bd=5:cd=5:or=31:mi=0:ex=35:*.rpm=90:*.png=35:*.gif=36:*.jpg=35:*.c=92:*.jar=33:*.py=93:*.h=90:*.txt=94:*.doc=104:*.docx=104:*.odt=104:*.csv=102:*.xlsx=102:*.xlsm=102:*.rb=31:*.cpp=92:*.sh=92:*.html=96:*.zip=4;33:*.tar.gz=4;33:*.mp4=105:*.mp3=106:tw=1;37:ow=1;37' export LS_COLORS setopt globdots # eval "$(dircolors)" zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS} alias vim="lvim" export EDITOR="/home/penguin/.local/bin/lvim" export VISUAL="/home/penguin/.local/bin/lvim" function pssh() { case "$1" in epgit) source $HOME/.pscripts/pssh_epgit ;; ep) source $HOME/.pscripts/pssh_ep ;; github) source $HOME/.pscripts/pssh_github ;; pi) source $HOME/.pscripts/pssh_pi ;; vps) source $HOME/.pscripts/pssh_vps ;; *) echo "Usage: $0 {epgit | ep | github | pi | vps}" esac } alias pfixskew="find . -exec touch {} \;" alias bmake="bear -- make" alias rdos2unix="find . -type f -print0 | xargs -0 dos2unix --" alias minicom="minicom -con" . ~/.bash_aliases zle_highlight=(default:bold,fg=white) function cformat() { find . -regex '.*\.\(cpp\|hpp\|cc\|cxx\|c\)' -exec clang-format -style=file -i {} \; } autoload -U select-word-style select-word-style bash # To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh # plug "zsh-users/zsh-syntax-highlighting"