My dotfiles
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 

57 行
1.8 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 LC_CTYPE=ru_RU.UTF-8
  8. export EDITOR=nvim
  9. alias ..="cd .."
  10. alias ls="ls --color"
  11. alias ll="ls -l --color"
  12. alias la="ls -a --color"
  13. alias lal="ls -al --color"
  14. alias huion="xsetwacom set 'HUION Huion Tablet Pen stylus' Area 4384 3990 24384 15240"
  15. alias dxyz="ssh root@rinri-d.xyz"
  16. alias mrcon="mcrcon -H rinri-d.xyz -p -t"
  17. alias vim="nvim"
  18. alias minemus="mpv --no-video https://youtu.be/Dg0IjOzopYU"
  19. alias weebcabin="~/scripts/anime.sh"
  20. alias cal="cal -m"
  21. # Lines configured by zsh-newuser-install
  22. HISTFILE=~/.histfile
  23. HISTSIZE=10000
  24. SAVEHIST=10000
  25. bindkey -e
  26. # End of lines configured by zsh-newuser-install
  27. # The following lines were added by compinstall
  28. zstyle :compinstall filename '/home/rinri/.zshrc'
  29. autoload -U compinit
  30. zstyle ':completion:*' menu select
  31. zmodload zsh/complist
  32. compinit
  33. _comp_options+=(globdots)
  34. lfcd () {
  35. tmp="$(mktemp)"
  36. lf -last-dir-path="$tmp" "$@"
  37. if [ -f "$tmp" ]; then
  38. dir="$(cat "$tmp")"
  39. rm -f "$tmp"
  40. [ -d "$dir" ] && [ "$dir" != "$(pwd)" ] && cd "$dir"
  41. fi
  42. }
  43. bindkey -s '^o' 'lfcd\n'
  44. # End of lines added by compinstall
  45. source ~/src/powerlevel10k/powerlevel10k.zsh-theme
  46. source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
  47. # To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
  48. [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
  49. 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