Advertisement
Dobbie03

Untitled

Mar 4th, 2018
345
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.85 KB | None | 0 0
  1.  
  2. export TERM="xterm-256color"
  3.  
  4. # If you come from bash you might have to change your $PATH.
  5. # export PATH=$HOME/bin:/usr/local/bin:$PATH
  6.  
  7. # Path to your oh-my-zsh installation.
  8. export ZSH=/home/dobbie/.oh-my-zsh
  9.  
  10. # Set name of the theme to load. Optionally, if you set this to "random"
  11. # it'll load a random theme each time that oh-my-zsh is loaded.
  12. # See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
  13. ZSH_THEME="hyperzsh"
  14.  
  15. # Uncomment the following line to use case-sensitive completion.
  16. # CASE_SENSITIVE="true"
  17.  
  18. # Uncomment the following line to use hyphen-insensitive completion. Case
  19. # sensitive completion must be off. _ and - will be interchangeable.
  20. # HYPHEN_INSENSITIVE="true"
  21.  
  22. # Uncomment the following line to disable bi-weekly auto-update checks.
  23. # DISABLE_AUTO_UPDATE="true"
  24.  
  25. # Uncomment the following line to change how often to auto-update (in days).
  26. # export UPDATE_ZSH_DAYS=13
  27.  
  28. # Uncomment the following line to disable colors in ls.
  29. # DISABLE_LS_COLORS="true"
  30.  
  31. # Uncomment the following line to disable auto-setting terminal title.
  32. # DISABLE_AUTO_TITLE="true"
  33.  
  34. # Uncomment the following line to enable command auto-correction.
  35. # ENABLE_CORRECTION="true"
  36.  
  37. # Uncomment the following line to display red dots whilst waiting for completion.
  38. # COMPLETION_WAITING_DOTS="true"
  39.  
  40. # Uncomment the following line if you want to disable marking untracked files
  41. # under VCS as dirty. This makes repository status check for large repositories
  42. # much, much faster.
  43. # DISABLE_UNTRACKED_FILES_DIRTY="true"
  44.  
  45. # Uncomment the following line if you want to change the command execution time
  46. # stamp shown in the history command output.
  47. # The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
  48. # HIST_STAMPS="mm/dd/yyyy"
  49.  
  50. # Would you like to use another custom folder than $ZSH/custom?
  51. # ZSH_CUSTOM=/path/to/new-custom-folder
  52.  
  53. # Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
  54. # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
  55. # Example format: plugins=(rails git textmate ruby lighthouse)
  56. # Add wisely, as too many plugins slow down shell startup.
  57. plugins=(git)
  58.  
  59. #source $ZSH/oh-my-zsh.sh
  60.  
  61. # User configuration
  62.  
  63. # export MANPATH="/usr/local/man:$MANPATH"
  64.  
  65. # You may need to manually set your language environment
  66. # export LANG=en_US.UTF-8
  67.  
  68. # Preferred editor for local and remote sessions
  69. # if [[ -n $SSH_CONNECTION ]]; then
  70. # export EDITOR='vim'
  71. # else
  72. # export EDITOR='mvim'
  73. # fi
  74.  
  75. # Compilation flags
  76. # export ARCHFLAGS="-arch x86_64"
  77.  
  78. # ssh
  79. # export SSH_KEY_PATH="~/.ssh/rsa_id"
  80.  
  81. # Set personal aliases, overriding those provided by oh-my-zsh libs,
  82. # plugins, and themes. Aliases can be placed here, though oh-my-zsh
  83. # users are encouraged to define aliases within the ZSH_CUSTOM folder.
  84. # For a full list of active aliases, run `alias`.
  85. #
  86. #-----------------------------
  87. # Alias
  88. #-----------------------------
  89. alias pacman="pacman --color auto"
  90. alias ls="ls --color"
  91. alias weather="curl http://wttr.in/napier"
  92. alias clock="tty-clock -c"
  93. alias matrix="cmatrix"
  94. alias starwars="telnet towel.blinkenlights.nl"
  95. alias pipes="pipes"
  96. alias mpdn="ncmpcpp -S visualizer"
  97. #alias syua="pacaur -Syu"
  98. #alias syu="sudo pacman -Syu"
  99. alias merge="xrdb -merge ~/.Xresources"
  100. #alias ssh="ssh -p 6666 dobbie03@69.164.210.120"
  101. alias neo="neofetch"
  102. alias lol= "screenfetch | lolcat -F 0.2 -a -s 10"0
  103. alias neoa="neofetch --ascii"
  104. alias neob="neofetch --backend off"
  105. alias play="ncmpcpp -S visualizer"
  106. alias font="sudo fc-cache -f -v"
  107. alias tui="s-tui"
  108. alias ana="systemd-analyze"
  109. alias anab="systemd-analyze blame"
  110. alias upmirrors="sudo reflector --score 100 --fastest 25 --sort rate --save /etc/pacman.d/mirrorlist --verbose"
  111. alias backup="sh ~/Documents/dotii"
  112. alias scr="./.scr"
  113. alias res="openbox --restart"
  114. alias rec="openbox --reconfigure"
  115. #alias orp="sudo pacman -Rns $(pacman -Qtdq)"
  116. alias tutor="vimtutor"
  117.  
  118. ## PACMAN
  119. alias update='sudo pacman -Syyu'
  120. alias install='sudo pacman -S'
  121. alias search='pacman -Ss'
  122. alias remove='sudo pacman -Rns'
  123. alias clean='sudo pacman -Scc'
  124. alias orphan='sudo pacman -Rs $(pacman -Qtdq)'
  125. alias stayonmypc='sudo pacman -D --asexp'
  126. alias fuckoff='sudo pacman -D --asdep'
  127. alias pacinf='pacman -Si'
  128. alias searchlocal='pacman -Qs'
  129. alias listfiles='pacman -Ql'
  130. alias whoisorphan='pacman -Qdt'
  131. alias upmirrors='sudo cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.backup; sudo reflector -l 5 --sort rate --save /etc/pacman.d/mirrorlist'
  132. alias paclog='tail -f /var/log/pacman.log'
  133. alias pacul='sudo rm /var/lib/pacman/db.lck'
  134.  
  135. ## YAOURT
  136. alias yorphan='yaourt -Qtd'
  137. alias aurin='yaourt -S'
  138. alias aurse='yaourt -Ss'
  139. alias aurup='yaourt -Syua'
  140. alias aurupnc='yaourt -Syua --noconfirm'
  141. alias aurinen='LC_ALL=C yaourt -S'
  142. alias Y='yaourt --noconfirm'
  143. alias aurinf='yaourt -Si'
  144.  
  145. neofetch
  146. echo "$(fortune -sa)\n" # display a random short quote at start
  147. #./.al.sh
  148. #ufetch
  149. if [[ $TERM != "xterm-termite" ]] || [[ $TERM != "rxvt-256color" ]]; then export TERM="xterm-256color"; fi
  150.  
  151. PATH="/home/dobbie/perl5/bin${PATH:+:${PATH}}"; export PATH;
  152. PERL5LIB="/home/dobbie/perl5/lib/perl5${PERL5LIB:+:${PERL5LIB}}"; export PERL5LIB;
  153. PERL_LOCAL_LIB_ROOT="/home/dobbie/perl5${PERL_LOCAL_LIB_ROOT:+:${PERL_LOCAL_LIB_ROOT}}"; export PERL_LOCAL_LIB_ROOT;
  154. PERL_MB_OPT="--install_base \"/home/dobbie/perl5\""; export PERL_MB_OPT;
  155. PERL_MM_OPT="INSTALL_BASE=/home/dobbie/perl5"; export PERL_MM_OPT;
  156. export PATH=/home/dobbie/.bin:$PATH
  157.  
  158. setopt EXTENDED_HISTORY
  159. setopt HIST_EXPIRE_DUPS_FIRST
  160. setopt HIST_IGNORE_DUPS
  161. setopt HIST_IGNORE_ALL_DUPS
  162. setopt HIST_IGNORE_SPACE
  163. setopt HIST_FIND_NO_DUPS
  164. setopt HIST_SAVE_NO_DUPS
  165.  
  166. PATH="/home/dobbie/perl5/bin${PATH:+:${PATH}}"; export PATH;
  167. PERL5LIB="/home/dobbie/perl5/lib/perl5${PERL5LIB:+:${PERL5LIB}}"; export PERL5LIB;
  168. PERL_LOCAL_LIB_ROOT="/home/dobbie/perl5${PERL_LOCAL_LIB_ROOT:+:${PERL_LOCAL_LIB_ROOT}}"; export PERL_LOCAL_LIB_ROOT;
  169. PERL_MB_OPT="--install_base \"/home/dobbie/perl5\""; export PERL_MB_OPT;
  170. PERL_MM_OPT="INSTALL_BASE=/home/dobbie/perl5"; export PERL_MM_OPT
  171.  
  172. # ls after cd.. no-op in dir with more than 40 items to list
  173. cdls() { cd "$@"; [ ${#$(ls)} -le 40 ] && ls --group-directories-first || :; }
  174.  
  175. if [ $TILIX_ID ] || [ $VTE_VERSION ]; then
  176. source /etc/profile.d/vte.sh
  177. fi
  178. export PATH=$HOME/bin:$PATH
  179.  
  180. instantnews () {
  181. curl https://newsapi.org/v1/articles -s -G \
  182. -d sources=$1 \
  183. -d apiKey=83df5985124c4352ae11447b349270f7u \
  184. | jq '.articles[] | .title'
  185. }
  186.  
  187. startmyday () {
  188. echo "Hello, Matt."
  189. echo "\nUpdating your ArchLabs system..."
  190. aurup --noconfirm
  191. echo "\nThe weather right now:"
  192. ansiweather
  193. echo "\nLatest News Headlines from BBC:"
  194. instantnews --news bbc-news
  195. echo "\nNews from Google:"
  196. instantnews --news google-news
  197. echo "\nSport News from BBC Sport:"
  198. instantnews --news bbc-sport
  199. }
  200.  
  201. export IN_API_KEY="83df5985124c4352ae11447b349270f7"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement