Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Path to your oh-my-zsh installation.
- ZSH=/usr/share/oh-my-zsh/
- ZSH_THEME="clean"
- # Uncomment the following line to disable bi-weekly auto-update checks.
- DISABLE_AUTO_UPDATE="true"
- # The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
- HIST_STAMPS="mm/dd/yyyy"
- plugins=(git)
- # User configuration
- export PATH=$HOME/bin:/usr/local/bin:$PATH
- # export MANPATH="/usr/local/man:$MANPATH"
- # Preferred editor for local and remote sessions
- if [[ -n $SSH_CONNECTION ]]; then
- export EDITOR='vim'
- else
- export EDITOR='vim'
- fi
- eval $(dircolors ~/.dircolors)
- # Compilation flags
- # export ARCHFLAGS="-arch x86_64"
- # ssh
- # export SSH_KEY_PATH="~/.ssh/dsa_id"
- alias wip="dig +short myip.opendns.com @resolver1.opendns.com"
- alias fix0="configure.sh wlan0 managed"
- alias fix1="configure.sh wlan1 managed"
- alias pen0="configure.sh wlan0 monitor"
- alias pen1="configure.sh wlan1 monitor"
- # Custom Functions that I use regularly
- wkill() {systemct stop NetworkManager.service; killall NetworkManager; killall wpa_supplicant; killall dhclient; rfkill block wifi all}
- wnet() {netstat "-naultp"}
- wmon() {nethogs "wlan0"}
- powersave() {wkill; killall thermald; thermald --exclusive-control; cpupower frequency-set -g powersave}
- twitch_source() {livestreamer --hls-segment-threads 4 --retry-streams 2 --player "vlc --file-caching=5000" "$1" "source"}
- twitch_high() {livestreamer --hls-segment-threads 3 --retry-streams 2 --player "vlc --file-caching=5000" "$1" "high"}
- twitch_medium() {livestreamer --hls-segment-threads 2 --retry-streams 2 --player "vlc --file-caching=5000" "$1" "medium"}
- twitch_low() {livestreamer --hls-segment-threads 2 --retry-streams 2 --player "vlc --file-caching=5000" "$1" "low"}
- # Note taking app
- n() {
- if [ "$1" = "today" ];
- then
- $EDITOR ~/notes/`date +%y%m%d`
- else
- $EDITOR ~/notes/"$*"
- fi
- }
- nls() {
- ls -c ~/notes/ | grep "$*"
- }
- ns() {
- egrep -RHi "$*" ~/notes/*
- }
- nrd() {
- cat ~/notes/"$*"
- }
- nwr() {
- $EDITOR ~/notes/"$*"
- }
- ZSH_CACHE_DIR=$HOME/.oh-my-zsh-cache
- if [[ ! -d $ZSH_CACHE_DIR ]]; then
- mkdir $ZSH_CACHE_DIR
- fi
- source $ZSH/oh-my-zsh.sh
Advertisement
Add Comment
Please, Sign In to add comment