dotfiles/zshrc

69 lines
1.6 KiB
Bash

[[ $- != *i* ]] && return
# disable scroll lock
stty -ixon
alias fuck='sudo $(fc -l -n -1)'
if command -v lsd >/dev/null 2>&1; then
alias ll='lsd -lav'
alias l='lsd -lv'
alias ls='lsd'
elif command -v eza >/dev/null 2>&1; then
alias ll='eza -lag'
alias l='eza -lg'
alias ls='eza'
else
alias ll='ls -lav --color=auto'
alias l='ls -lv --color=auto'
alias ls='ls --color=auto'
fi
command -v bat >/dev/null 2>&1 && alias cat='bat'
# The following lines were added by compinstall
zstyle ':completion:*' completer _complete _ignored
zstyle ':completion:*' matcher-list '' 'm:{[:lower:]}={[:upper:]}' 'r:|[._-]=** r:|=**' 'l:|=* r:|=*'
zstyle :compinstall filename '/home/livie/.zshrc'
autoload -Uz compinit
compinit
# End of lines added by compinstall
# Lines configured by zsh-newuser-install
HISTFILE=~/.zsh_history
HISTSIZE=1000
SAVEHIST=10000
setopt nomatch notify
unsetopt autocd beep extendedglob
bindkey -e
# End of lines configured by zsh-newuser-install
# Created by `pipx` on 2023-06-17 16:56:49
export PATH="$PATH:/home/livie/.local/bin"
# fzf autocompletion
if command -v fzf >/dev/null 2>&1; then
source /usr/share/fzf/key-bindings.zsh
source /usr/share/fzf/completion.zsh
fi
# fzf opts
#export FZF_COMPLETION_OPTS=''
export FZF_DEFAULT_COMMAND='fd --hidden --follow --exclude ".git"'
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
# fd use for fzf
_fzf_compgen_path() {
fd --hidden --follow --exclude ".git" . "$1"
}
_fzf_compgen_dir() {
fd --type d --hidden --follow --exclude ".git" . "$1"
}
powerline-daemon -q
. /usr/share/powerline/bindings/zsh/powerline.zsh