dotfiles/.zshrc

43 lines
1.4 KiB
Bash
Raw Normal View History

2024-06-24 19:17:36 -07:00
fastfetch
export HISTFILE="$HOME/.zsh_history"
export HISTSIZE=10000
export SAVEHIST=10000
export PATH="$HOME/.config/emacs/bin:$PATH"
setopt EXTENDED_HISTORY
# 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
# The following lines were added by compinstall
zstyle :compinstall filename '/home/xie/.zshrc'
autoload -Uz compinit
compinit
# End of lines added by compinstall
# Fish-like Syntax highlighting
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
source /usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme
source /usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme
source /usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme
# AutoCD
setopt autocd
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
# Aliases
alias vi='nvim'
alias sudo='doas '
alias pacupdate='doas pacman -Syu'
2024-06-26 10:56:21 -07:00
alias la='ls -alpsh --color=auto'
2024-06-24 19:17:36 -07:00
alias gc='git commit -m'
alias gs='git add . && git commit -m'
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh