dotfiles/.zshrc

37 lines
1.2 KiB
Bash

# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
#ZSH_THEME="powerlevel10k/powerlevel10k"
# Standard plugins can be found in $ZSH/plugins/
# Custom plugins may be added to $ZSH_CUSTOM/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(git zsh-autosuggestions zsh-syntax-highlighting)
source $ZSH/oh-my-zsh.sh
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
export PATH=/home/calamity/.cargo/bin:/home/calamity/.local/bin:$PATH
test -r "~/.dir_colors" && eval $(dircolors ~/.dir_colors)
alias ls='ls --color=auto'
export TERM=xterm-256color
export GPG_TTY=$(tty)
alias gut='git'
alias сдуфк=clear
2gif() {
if [[ "$1" = "c" ]]
then ffmpeg -i $2 -filter_complex "[0:v] fps=12,scale=w=480:h=-1,split [a][b];[a] palettegen [p];[b][p] paletteuse" $3;
elif [[ "$1" = "wc" ]]
then ffmpeg -i $2 -filter_complex "[0:v] split [a][b];[a] palettegen [p];[b][p] paletteuse" $3;
else
echo 'First argument must be "c" or "wc"'
fi
}
alias dotfiles='git --git-dir=/home/calamity/.dotfiles/ --work-tree=/home/calamity'
# completions
fpath+=~/.zfunc
autoload -Uz compinit && compinit
eval "$(starship init zsh)"