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.

163 lines
5.3KB

  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. # Extend my $PATH to $HOME/bin
  8. export PATH=$HOME/bin:$HOME/.gem/ruby/2.7.0/bin:$HOME/.gem/ruby/2.6.0/bin:$HOME/.gem/ruby/2.5.0/bin:$PATH
  9. # Java Stuff
  10. export JAVA_HOME=/usr/lib/jvm/java-8-openjdk
  11. # Android / Kivy Development Stuff
  12. export ANDROID_HOME=/home/hanez/.android/sdk
  13. export ANDROIDSDK="/opt/android-sdk"
  14. export ANDROIDNDK="/opt/android-ndk"
  15. export ANDROIDAPI="19"
  16. export ANDROIDNDKVER="r16b"
  17. # Export the $EDITOR and $TERMINAL
  18. export BROWSER=/usr/bin/firefox
  19. export EDITOR=/usr/bin/vim
  20. export TERMINAL='/usr/bin/uxterm -bg black -fg grey -sb -leftbar -si -bc -cr orange -fa "Noto Mono" -fs 13'
  21. # Fix to make JAVA applications behave more friendly in awesome. Still many JAVA apps
  22. # suck in awesome. PyCharm works perfect, Arduino does not!
  23. export _JAVA_AWT_WM_NONREPARENTING=1
  24. # Path to your oh-my-zsh installation.
  25. export ZSH=~/.zsh/oh-my-zsh
  26. # Set name of the theme to load.
  27. # Look in ~/.oh-my-zsh/themes/
  28. # Optionally, if you set this to "random", it'll load a random theme each
  29. # time that oh-my-zsh is loaded.
  30. ZSH_THEME="hanez"
  31. # Uncomment the following line to use case-sensitive completion.
  32. # CASE_SENSITIVE="true"
  33. # Uncomment the following line to use hyphen-insensitive completion. Case
  34. # sensitive completion must be off. _ and - will be interchangeable.
  35. # HYPHEN_INSENSITIVE="true"
  36. # Uncomment the following line to disable bi-weekly auto-update checks.
  37. DISABLE_AUTO_UPDATE="true"
  38. # Uncomment the following line to change how often to auto-update (in days).
  39. # export UPDATE_ZSH_DAYS=13
  40. # Uncomment the following line to disable colors in ls.
  41. # DISABLE_LS_COLORS="true"
  42. # Uncomment the following line to disable auto-setting terminal title.
  43. # DISABLE_AUTO_TITLE="true"
  44. # Uncomment the following line to enable command auto-correction.
  45. # ENABLE_CORRECTION="true"
  46. # Uncomment the following line to display red dots whilst waiting for completion.
  47. # COMPLETION_WAITING_DOTS="true"
  48. # Uncomment the following line if you want to disable marking untracked files
  49. # under VCS as dirty. This makes repository status check for large repositories
  50. # much, much faster.
  51. # DISABLE_UNTRACKED_FILES_DIRTY="true"
  52. # Uncomment the following line if you want to change the command execution time
  53. # stamp shown in the history command output.
  54. # The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
  55. # HIST_STAMPS="mm/dd/yyyy"
  56. # Would you like to use another custom folder than $ZSH/custom?
  57. # ZSH_CUSTOM=/path/to/new-custom-folder
  58. # Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
  59. # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
  60. # Example format: plugins=(rails git textmate ruby lighthouse)
  61. # Add wisely, as too many plugins slow down shell startup.
  62. plugins=(colored-man)
  63. # History settings
  64. HISTSIZE=100000
  65. SAVEHIST=100000
  66. HISTFILE=~/.zsh_history
  67. # export MANPATH="/usr/local/man:$MANPATH"
  68. # Load oh-my-zsh stuff
  69. source $ZSH/oh-my-zsh.sh
  70. # Now source some stuff that should not be public
  71. if [ -e ~/.zshprivate ]
  72. then
  73. source ~/.zshprivate
  74. fi
  75. # Source some functions
  76. for function in ~/.zsh/functions.d/*.sh; do
  77. source $function
  78. done
  79. # Some aliases
  80. alias ..='cd ..'
  81. alias ...='cd ../..'
  82. alias ....='cd ../../..'
  83. alias .....='cd ../../../..'
  84. alias l='ls --color'
  85. alias ls='ls --color'
  86. alias lsa='ls -a --color'
  87. alias ll='ls --color -l'
  88. alias lla='ls -la --color'
  89. alias llh='ls -lh --color'
  90. alias llah='ls -lah --color'
  91. alias lsd='ls -ld --color'
  92. alias vi=vim
  93. alias y=yaourt
  94. alias xterm=$TERMINAL
  95. alias backup_t410='rsync -avr --delete --delete-excluded --exclude=/dev --exclude=/proc --exclude=/sys --exclude=/run / /run/media/hanez/BACKUP1000GB/t410/'
  96. alias backup_11s='rsync -avr --delete --delete-excluded --exclude=/dev --exclude=/proc --exclude=/sys --exclude=/run / /run/media/hanez/BACKUP1000GB/11s/'
  97. alias spamup='rsync -avr --delete ~/.bogofilter/* b.systemchaos.org:/var/bogofilter'
  98. alias x5musicsync="adb-sync --delete /home/hanez/music/* /sdcard/Music"
  99. # Some Git aliases
  100. alias gitc='git commit'
  101. alias gitd='git diff'
  102. alias gitp='git push'
  103. alias gits='git status'
  104. # SSH Host aliases
  105. alias a.systemchaos.org='ssh a.systemchaos.org'
  106. alias c.systemchaos.org='ssh c.systemchaos.org'
  107. alias d.systemchaos.org='ssh d.systemchaos.org'
  108. alias e.systemchaos.org='ssh e.systemchaos.org'
  109. alias onionpi='ssh onionpi'
  110. # I use xterm and this sets a nice title with hostname and cwd in it.
  111. case $TERM in
  112. linux)
  113. export TERM=linux-16color
  114. precmd () {print -Pn "\e]0;%n@%m: %~\a"}
  115. ;;
  116. xterm*)
  117. export TERM=xterm-256color
  118. precmd () {print -Pn "\e]0;%n@%m: %~\a"}
  119. ;;
  120. screen)
  121. export TERM=screen-256color
  122. precmd () {print -Pn "\e]0;%n@%m: %~\a"}
  123. ;;
  124. esac
  125. if [ -f /usr/bin/shellpic ]; then
  126. if [ -f ~/images/tux.png ]; then
  127. /usr/bin/shellpic --shell24 --scale-x 50 ~/images/tux.png
  128. fi
  129. fi
  130. #source /usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme
  131. # To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
  132. #[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh