55 lines
1.2 KiB
Bash
55 lines
1.2 KiB
Bash
# Lines configured by zsh-newuser-install
|
|
HISTFILE=~/.histfile
|
|
HISTSIZE=1000
|
|
SAVEHIST=2000
|
|
setopt nomatch
|
|
unsetopt autocd beep extendedglob notify
|
|
bindkey -e
|
|
# End of lines configured by zsh-newuser-install
|
|
# The following lines were added by compinstall
|
|
zstyle :compinstall filename '/home/h44z/.zshrc'
|
|
|
|
autoload -Uz compinit
|
|
compinit
|
|
# End of lines added by compinstall
|
|
|
|
# fix key bindings for delete, pos1 and end
|
|
bindkey "^[[H" beginning-of-line
|
|
bindkey "^[[F" end-of-line
|
|
bindkey "^[[3~" delete-char
|
|
|
|
# some more ls aliases
|
|
alias ll='ls -l'
|
|
alias lla='ls -la'
|
|
alias la='ls -A'
|
|
#alias l='ls -CF'
|
|
|
|
# some other useful aliases
|
|
alias dc='docker-compose'
|
|
alias ..='cd ..'
|
|
alias ...='cd ..; cd ..'
|
|
alias ....='cd ..; cd ..; cd ..'
|
|
alias open=xdg-open
|
|
alias grep='grep --color=always'
|
|
alias vi='vim'
|
|
|
|
# command not found helper
|
|
if [[ -f /usr/share/doc/find-the-command/ftc.zsh ]] ; then
|
|
source /usr/share/doc/find-the-command/ftc.zsh
|
|
fi
|
|
|
|
# tilix fix
|
|
if [ $TILIX_ID ] || [ $VTE_VERSION ]; then
|
|
source /etc/profile.d/vte.sh
|
|
fi
|
|
|
|
# setup oh-my-posh
|
|
if [ -x /usr/bin/oh-my-posh ]; then
|
|
eval "$(oh-my-posh init zsh --config ~/.ohmyposh/myshell.minimal.omp.json)"
|
|
fi
|
|
|
|
# start archey4
|
|
if [ -x /usr/bin/archey ]; then
|
|
archey
|
|
fi
|