Skip to content

Instantly share code, notes, and snippets.

@tapickell
Created April 13, 2019 14:58
Show Gist options
  • Save tapickell/06bb1a1b2de63dd82d437569b584effa to your computer and use it in GitHub Desktop.
Save tapickell/06bb1a1b2de63dd82d437569b584effa to your computer and use it in GitHub Desktop.
zshrc from x240
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="nt9"
plugins=(command-not-found history cabal mosh mix rebar nvm battery docker git aws jsontools last-working-dir npm debian pip redis-cli sudo web-search)
# Example aliases
alias zshconfig="vim ~/.zshrc"
alias ohmyzsh="vim ~/.oh-my-zsh"
# my alias
alias list="ls -hAlF"
alias gocode="cd ~/code"
alias giti="git init"
alias gita="git add ."
alias gitr="git rm"
alias gitc="git commit -m "
alias gitlol='git commit -am "$(curl -s whatthecommit.com/index.txt)"'
alias gits="git status"
alias grep='GREP_COLOR="1;37;41" LANG=C grep --color=auto'
alias ttop="top -ocpu -R -F -s 2 -n30"
alias gotmux="tmux new -s"
alias ls='ls -G'
alias ll='ls -la'
alias la='ls -a'
alias grep='GREP_COLOR="1;37;41" LANG=C grep --color=auto'
alias pgrep='ps aux | grep'
alias tn="tmux -2 new-session -s"
alias tt="tmux -2 attach -t"
alias msf="docker run -t -i kali-metasploit /bin/bash"
alias myip="curl -s checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//' "
alias myspeed="curl -o /dev/null http://speedtest.wdc01.softlayer.com/downloads/test10.zip"
alias whosonport="sudo lsof -i -P | grep"
alias find_grep="find . -type f -print0 | xargs -0 grep -l"
alias failed_systemctl="systemctl --failed"
alias error_journal="sudo journalctl -p 3 -xb"
alias error_tail="sudo journalctl -p 3 --follow -xb"
alias debug_bt="lspci -nnk | grep -iA2 net; lsusb; lsmod | grep blue; sudo dmesg | egrep -i 'blue|firm'"
alias broke_symlinks="find -xtype l -print"
alias debug_ssd="sudo smartctl -a /dev/sda"
alias rezsh="source ~/.zshrc"
alias no_caps="setxkbmap -option caps:ctrl_modifier"
alias clear_kbmap="setxkbmap -option"
alias debug_awesome="Xephyr :2 -ac -br -noreset -screen 800x600 & DSIPLAY=:2.0 awesome -c "
# Set to this to use case-sensitive completion
# CASE_SENSITIVE="true"
# Comment this out to disable weekly auto-update checks
# DISABLE_AUTO_UPDATE="true"
# Uncomment following line if you want to disable colors in ls
# DISABLE_LS_COLORS="true"
# Uncomment following line if you want to disable autosetting terminal title.
# DISABLE_AUTO_TITLE="true"
# Uncomment following line if you want red dots to be displayed while waiting for completion
COMPLETION_WAITING_DOTS="true"
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
source $ZSH/oh-my-zsh.sh
#source /usr/local/share/chruby/chruby.sh
#RUBIES=(~/.rvm/rubies/*)
# Customize to your needs...
export PATH=/usr/local/bin:/usr/local/sbin:~/bin:/usr/local/bin:/usr/local/sbin:~/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/go/bin:~/bin:$PATH
#[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
# So no more 32-bit universal binary bullshit fucks shit up.
export ARCHFLAGS="-arch x86_64"
export BROWSER="firefox"
function gitsdir {
ls | grep $1 | while read -r line ; do cd $line; echo $line; gits; git log -1 --pretty=format:"Last Commit%n%h%n%an%n%ae%n%ar%n%s%n%b%n" |& cat; echo "\n"; cd ../; done
}
. $HOME/.asdf/asdf.sh
. $HOME/.asdf/completions/asdf.bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment