export EDITOR="nvim" export TERMINAL="st" export LC_CTYPE=ru_RU.UTF-8 #export FIFTPATH="/home/rinri/smartcontract/fiftlib" # 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 dxyz="ssh root@rinri-d.xyz" alias vim="nvim" 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 #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/antigen.zsh source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.plugin.zsh antigen bundle jeffreytse/zsh-vi-mode antigen apply ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=8" ZSH_AUTOSUGGEST_STRATEGY=(history completion) # 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)'" 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 eval "$(starship init zsh)" autoload -U +X bashcompinit && bashcompinit complete -o nospace -C /usr/bin/terraform terraform