update dotfiles

This commit is contained in:
2021-08-19 16:03:10 +02:00
parent 8f163b3ed7
commit 714d857a98
4 changed files with 103 additions and 38 deletions

43
zshrc
View File

@@ -1,17 +1,17 @@
# path
export PATH=/home/aaron/.cargo/bin:$PATH
# Syntax highlighting
source /usr/share/zsh/site-functions/zsh-syntax-highlighting.zsh
source /home/$USER/.oh-my-zsh/oh-my-zsh.sh
# Don't try to display a fancy theme in a tty
if [[ $TERM == "linux" ]] || [[ $TERM == "screen" ]] || [[ $TERM == "xterm" ]] ; then
# Dont try to display a fancy theme in a tty
if [[ $TERM == "linux" ]] || [[ $TERM == "screen" ]]; then
[[ ! -f ~/.p10k-portable.zsh ]] || source ~/.p10k-portable.zsh
else
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
fi
# 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
# Move one word left or right using alt
bindkey "[D" backward-word
bindkey "^[h" backward-word
@@ -26,6 +26,9 @@ alias showip="ip --brief a"
alias ssh='TERM=xterm ssh'
alias ll="ls -l"
# Lines configured by zsh-newuser-install
bindkey -e
# History config
HIST_IGNORE_DUPS="true"
HIST_STAMPS="mm/dd/yyyy"
@@ -38,22 +41,12 @@ setopt SHARE_HISTORY
autoload -Uz compinit; compinit
zstyle ':completion:*' menu select
# oh-my-zsh configs
DIASBLE_AUTO_TITLE="true"
DISABLE_AUTO_UPDATE="false"
UPDATE_ZSH_DAYS=5
# End of lines configured by zsh-newuser-install
# The following lines were added by compinstall
zstyle :compinstall filename '/home/aaron/.zshrc'
# oh-my-zsh plugins
#plugins=(
# ssh-agent
# gpg-agent
#)
# 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
autoload -Uz compinit
compinit
# End of lines added by compinstall
source /usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme