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.
 
 

60 line
2.4 KiB

  1. # Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
  2. # Initialization code that may require console input (password prompts, [y/n]
  3. # confirmations, etc.) must go above this block; everything else may go below.
  4. if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
  5. source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
  6. fi
  7. export EDITOR="nvim"
  8. export TERMINAL="st"
  9. export BROWSER="firefox"
  10. export LC_CTYPE=ru_RU.UTF-8
  11. fzfcd () {
  12. cd "$(fd --type d --follow --exclude .git --exclude node_modules | fzf)"
  13. }
  14. alias ..="cd .."
  15. alias ls="ls --color"
  16. alias ll="ls -l --color"
  17. alias la="ls -a --color"
  18. alias lal="ls -al --color"
  19. alias huion="xsetwacom set 'HUION Huion Tablet Pen stylus' Area 4384 3990 24384 15240"
  20. alias dxyz="ssh root@rinri-d.xyz"
  21. alias mrcon="mcrcon -H rinri-d.xyz -p -t"
  22. alias vim="nvim"
  23. alias minemus="mpv --no-video https://youtu.be/Dg0IjOzopYU"
  24. alias weebcabin="~/scripts/anime.sh"
  25. alias cal="cal -m"
  26. # Lines configured by zsh-newuser-install
  27. HISTFILE=~/.histfile
  28. HISTSIZE=100000
  29. SAVEHIST=100000
  30. bindkey -e
  31. # End of lines configured by zsh-newuser-install
  32. # The following lines were added by compinstall
  33. zstyle :compinstall filename '/home/rinri/.zshrc'
  34. autoload -U compinit
  35. zstyle ':completion:*' menu select
  36. zmodload zsh/complist
  37. compinit
  38. _comp_options+=(globdots)
  39. bindkey -s '^o' 'fzfcd\n'
  40. # End of lines added by compinstall
  41. source ~/src/powerlevel10k/powerlevel10k.zsh-theme
  42. source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
  43. source /usr/share/fzf/completion.zsh
  44. source /usr/share/fzf/key-bindings.zsh
  45. # fzf things
  46. export FZF_DEFAULT_COMMAND="fd --color=never --type f --type l --follow --exclude .git --exclude node_modules"
  47. 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)'"
  48. # To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
  49. [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
  50. 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