My dotfiles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

75 lines
2.5 KiB

  1. export EDITOR="nvim"
  2. export TERMINAL="st"
  3. export LC_CTYPE=ru_RU.UTF-8
  4. #export FIFTPATH="/home/rinri/smartcontract/fiftlib"
  5. # less + man
  6. export LESS_TERMCAP_mb=$'\e[1;32m'
  7. export LESS_TERMCAP_md=$'\e[1;32m'
  8. export LESS_TERMCAP_me=$'\e[0m'
  9. export LESS_TERMCAP_se=$'\e[0m'
  10. export LESS_TERMCAP_so=$'\e[01;33m'
  11. export LESS_TERMCAP_ue=$'\e[0m'
  12. export LESS_TERMCAP_us=$'\e[1;4;31m'
  13. export PAGER="less"
  14. fzfcd () {
  15. cd "$(fd --type d --follow --exclude .git --exclude node_modules | fzf)"
  16. }
  17. alias em="emacsclient --create-frame"
  18. alias ..="cd .."
  19. alias ls="ls --color"
  20. alias ll="ls --color -l"
  21. alias la="ls --color -A"
  22. alias lal="ls --color -Al"
  23. alias dxyz="ssh root@rinri-d.xyz"
  24. alias vim="nvim"
  25. alias cal="cal -m"
  26. alias sudo="doas"
  27. # Lines configured by zsh-newuser-install
  28. HISTFILE=~/.histfile
  29. HISTSIZE=100000
  30. SAVEHIST=100000
  31. bindkey -v
  32. # End of lines configured by zsh-newuser-install
  33. # The following lines were added by compinstall
  34. zstyle :compinstall filename '/home/rinri/.zshrc'
  35. #autoload -U compinit
  36. #zmodload zsh/complist
  37. #compinit
  38. #_comp_options+=(globdots)
  39. bindkey -s '^o' 'fzfcd\n'
  40. bindkey -M viins '\e.' insert-last-word
  41. # End of lines added by compinstall
  42. source ~/src/antigen.zsh
  43. source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
  44. source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.plugin.zsh
  45. antigen bundle jeffreytse/zsh-vi-mode
  46. antigen apply
  47. ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=8"
  48. ZSH_AUTOSUGGEST_STRATEGY=(history completion)
  49. # The plugin will auto execute this zvm_after_init function
  50. function zvm_after_init() {
  51. source /usr/share/fzf/completion.zsh
  52. source /usr/share/fzf/key-bindings.zsh
  53. }
  54. # fzf things
  55. export FZF_DEFAULT_COMMAND="fd --color=never --type f --type l --follow --exclude .git --exclude node_modules"
  56. 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)'"
  57. 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
  58. eval "$(starship init zsh)"
  59. autoload -U +X bashcompinit && bashcompinit
  60. complete -o nospace -C /usr/bin/terraform terraform