|
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- # 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
-
- export QT_QPA_PLATFORMTHEME=qt5ct
- export EDITOR="nvim"
- export TERMINAL="st"
- export BROWSER="firefox"
- export LC_CTYPE=ru_RU.UTF-8
- export WECHALLUSER="rinri"
- export WECHALLTOKEN="5F489-F2870-9F223-96264-58717-4AAB4"
-
- # less + man
- export LESS_TERMCAP_mb=$'\e[1;32m'
- export LESS_TERMCAP_md=$'\e[1;32m'
- export LESS_TERMCAP_me=$'\e[0m'
- export LESS_TERMCAP_se=$'\e[0m'
- export LESS_TERMCAP_so=$'\e[01;33m'
- export LESS_TERMCAP_ue=$'\e[0m'
- export LESS_TERMCAP_us=$'\e[1;4;31m'
- export PAGER="less"
-
- fzfcd () {
- cd "$(fd --type d --follow --exclude .git --exclude node_modules | fzf)"
- }
-
- alias em="emacsclient --create-frame"
- alias ..="cd .."
- alias ls="ls --color"
- alias ll="ls --color -l"
- alias la="ls --color -A"
- alias lal="ls --color -Al"
- alias huion="xsetwacom set 'HUION Huion Tablet Pen stylus' Area 4384 3990 24384 15240"
- alias dxyz="ssh root@rinri-d.xyz"
- alias mrcon="mcrcon -H rinri-d.xyz -p -t"
- alias vim="nvim"
- alias minemus="mpv --no-video https://youtu.be/Dg0IjOzopYU"
- alias weebcabin="~/scripts/anime.sh"
- alias cal="cal -m"
- alias sudo="doas"
-
- # Lines configured by zsh-newuser-install
- HISTFILE=~/.histfile
- HISTSIZE=100000
- SAVEHIST=100000
- bindkey -v
- # End of lines configured by zsh-newuser-install
- # The following lines were added by compinstall
- zstyle :compinstall filename '/home/rinri/.zshrc'
-
- autoload -U compinit
- zstyle ':completion:*' menu select
- zmodload zsh/complist
- compinit
- _comp_options+=(globdots)
-
- bindkey -s '^o' 'fzfcd\n'
- bindkey -M viins '\e.' insert-last-word
-
- # End of lines added by compinstall
- source ~/src/powerlevel10k/powerlevel10k.zsh-theme
- source ~/src/antigen.zsh
- source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
- antigen bundle jeffreytse/zsh-vi-mode
- antigen apply
-
- # The plugin will auto execute this zvm_after_init function
- function zvm_after_init() {
- source /usr/share/fzf/completion.zsh
- source /usr/share/fzf/key-bindings.zsh
- }
-
- # fzf things
- export FZF_DEFAULT_COMMAND="fd --color=never --type f --type l --follow --exclude .git --exclude node_modules"
- export FZF_DEFAULT_OPTS="--height 50% -1 --reverse --multi --inline-info --preview='[[ \$(file --mime {}) =~ binary ]] && echo {} is a binary file || (bat --style=numbers --color=always {} || cat {}) 2> /dev/null | head -300' --preview-window='right:hidden:wrap' --bind='f3:execute(bat --style=numbers {} || less -f {}),f2:toggle-preview,ctrl-d:half-page-down,ctrl-u:half-page-up,ctrl-a:select-all+accept,ctrl-y:execute-silent(echo {+} | pbcopy)'"
-
-
- # To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
- [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
- if [ -e /home/rinri/.nix-profile/etc/profile.d/nix.sh ]; then . /home/rinri/.nix-profile/etc/profile.d/nix.sh; fi # added by Nix installer
|