57 lines
1.3 KiB
Bash
57 lines
1.3 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'
|
|
|
|
powerline-daemon -q
|
|
. /usr/share/powerline/bindings/zsh/powerline.zsh
|
|
|
|
# input method
|
|
if command -v fcitx5 >/dev/null 2>&1; then
|
|
export GTK_IM_MODULE=fcitx
|
|
export QT_IM_MODULE=fcitx
|
|
export XMODIFIERS=@im=fcitx
|
|
export SDL_IM_MODULE=fcitx
|
|
export GLFW_IM_MODULE=ibus
|
|
fi
|
|
|
|
# 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 -v
|
|
# 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"
|