irenicus09

Zsh Config

Dec 6th, 2015
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 3.86 KB | None | 0 0
  1. # Path to your oh-my-zsh installation.
  2. ZSH=/usr/share/oh-my-zsh/
  3.  
  4. # Set name of the theme to load.
  5. # Look in ~/.oh-my-zsh/themes/
  6. # Optionally, if you set this to "random", it'll load a random theme each
  7. # time that oh-my-zsh is loaded.
  8. ZSH_THEME="clean"
  9.  
  10. # Uncomment the following line to use case-sensitive completion.
  11. # CASE_SENSITIVE="true"
  12.  
  13. # Uncomment the following line to use hyphen-insensitive completion. Case
  14. # sensitive completion must be off. _ and - will be interchangeable.
  15. # HYPHEN_INSENSITIVE="true"
  16.  
  17. # Uncomment the following line to disable bi-weekly auto-update checks.
  18. DISABLE_AUTO_UPDATE="true"
  19.  
  20. # Uncomment the following line to change how often to auto-update (in days).
  21. # export UPDATE_ZSH_DAYS=13
  22.  
  23. # Uncomment the following line to disable colors in ls.
  24. # DISABLE_LS_COLORS="true"
  25.  
  26. # Uncomment the following line to disable auto-setting terminal title.
  27. # DISABLE_AUTO_TITLE="true"
  28.  
  29. # Uncomment the following line to enable command auto-correction.
  30. # ENABLE_CORRECTION="true"
  31.  
  32. # Uncomment the following line to display red dots whilst waiting for completion.
  33. # COMPLETION_WAITING_DOTS="true"
  34.  
  35. # Uncomment the following line if you want to disable marking untracked files
  36. # under VCS as dirty. This makes repository status check for large repositories
  37. # much, much faster.
  38. # DISABLE_UNTRACKED_FILES_DIRTY="true"
  39.  
  40. # Uncomment the following line if you want to change the command execution time
  41. # stamp shown in the history command output.
  42. # The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
  43. HIST_STAMPS="mm/dd/yyyy"
  44.  
  45. # Would you like to use another custom folder than $ZSH/custom?
  46. # ZSH_CUSTOM=/path/to/new-custom-folder
  47.  
  48. # Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
  49. # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
  50. # Example format: plugins=(rails git textmate ruby lighthouse)
  51. # Add wisely, as too many plugins slow down shell startup.
  52. plugins=(git)
  53.  
  54. # User configuration
  55.  
  56. export PATH=$HOME/bin:/usr/local/bin:$PATH
  57. # export MANPATH="/usr/local/man:$MANPATH"
  58.  
  59.  
  60. # You may need to manually set your language environment
  61. # export LANG=en_US.UTF-8
  62.  
  63. # Preferred editor for local and remote sessions
  64. if [[ -n $SSH_CONNECTION ]]; then
  65.   export EDITOR='vim'
  66. else
  67.   export EDITOR='mvim'
  68. fi
  69.  
  70. eval $(dircolors ~/.dircolors)
  71. # Compilation flags
  72. # export ARCHFLAGS="-arch x86_64"
  73.  
  74. # ssh
  75. # export SSH_KEY_PATH="~/.ssh/dsa_id"
  76.  
  77. # Set personal aliases, overriding those provided by oh-my-zsh libs,
  78. # plugins, and themes. Aliases can be placed here, though oh-my-zsh
  79. # users are encouraged to define aliases within the ZSH_CUSTOM folder.
  80. # For a full list of active aliases, run `alias`.
  81. #
  82. # Example aliases
  83. # alias zshconfig="mate ~/.zshrc"
  84. # alias ohmyzsh="mate ~/.oh-my-zsh"
  85.  
  86. alias wip="dig +short myip.opendns.com @resolver1.opendns.com"
  87. alias fix0="configure.sh wlan0 managed"
  88. alias fix1="configure.sh wlan1 managed"
  89. alias pen0="configure.sh wlan0 monitor"
  90. alias pen1="configure.sh wlan1 monitor"
  91.  
  92. # Custom Functions that I use regularly
  93. wkill() {killall NetworkManager; killall wpa_supplicant; killall dhclient; rfkill block wifi all}
  94.  
  95. powersave() {wkill; killall thermald; thermald --exclusive-control; cpupower frequency-set -g powersave}
  96.  
  97. twitch_source() {livestreamer --hls-segment-threads 4 --retry-streams 2 --player "vlc --file-caching=5000" "$1" "source"}
  98.  
  99. twitch_high() {livestreamer --hls-segment-threads 3 --retry-streams 2 --player "vlc --file-caching=5000" "$1" "high"}
  100.  
  101. twitch_medium() {livestreamer --hls-segment-threads 2 --retry-streams 2 --player "vlc --file-caching=5000" "$1" "medium"}
  102.  
  103. twitch_low() {livestreamer --hls-segment-threads 2 --retry-streams 2 --player "vlc --file-caching=5000" "$1" "low"}
  104.  
  105.  
  106.  
  107. ZSH_CACHE_DIR=$HOME/.oh-my-zsh-cache
  108. if [[ ! -d $ZSH_CACHE_DIR ]]; then
  109.   mkdir $ZSH_CACHE_DIR
  110. fi
  111.  
  112. source $ZSH/oh-my-zsh.sh
Advertisement
Add Comment
Please, Sign In to add comment