1
0
mirror of https://github.com/eoli3n/dotfiles synced 2024-11-22 23:12:32 +01:00
eoli3n-dotfiles/.zshrc

80 lines
2.2 KiB
Bash
Raw Normal View History

2016-10-27 10:48:53 +02:00
#motd
cat ~/.config/motd
2016-03-16 12:23:43 +01:00
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
2016-03-28 10:14:55 +02:00
ZSH_THEME="agnoster"
2016-09-06 22:24:54 +02:00
#DEFAULT_USER="user"
2016-03-16 12:23:43 +01:00
#turn on comments with # in shell
setopt interactivecomments
#aliases
alias zshconfig="vi ~/.zshrc_node"
alias zshconfig_global="vi ~/.zshrc"
alias vimconfig="vi ~/.vimrc"
alias sshconfig="vi ~/.ssh/config"
2016-12-27 19:40:18 +01:00
alias lh="du -ahd1 | sort -h"
2016-10-11 19:30:38 +02:00
#lhs() { for list in $(ls -a | sed 's/\ /\\ /g'); do du -hs $list; done | sort -hr }
2016-03-16 12:23:43 +01:00
alias sprunge="curl -F 'sprunge=<-' http://sprunge.us"
2016-03-28 10:14:55 +02:00
alias ix="curl -s -F 'f:1=<-' ix.io"
2016-12-27 19:40:18 +01:00
up () { curl -F "c=@${1:--}" http://ptpb.pw/ }
2016-03-16 12:23:43 +01:00
alias vi="vim"
alias sudo="sudo "
2016-09-18 22:13:41 +02:00
alias installed="pacman -Qqen"
2016-12-19 18:53:04 +01:00
alias chrome="google-chrome-stable"
2016-09-18 22:13:41 +02:00
alias tmux="tmux -2"
2016-12-31 10:31:43 +01:00
alias neofetch="neofetch --crop_mode fit --image_size 33% --image ~/.config/neofetch/archlinux.png --colors 3 10 7 4 10 10"
2016-12-19 18:53:04 +01:00
bak() { cp "$1" "$1.bak" }
2016-10-11 19:30:38 +02:00
chromeapp() { google-chrome-stable --app=$1 }
2016-12-27 19:40:18 +01:00
extract() {
if [ -f $1 ] ; then
case $1 in
*.tar.bz2) tar xvjf $1 ;;
*.tar.gz) tar xvzf $1 ;;
*.tar.xz) tar xJf $1 ;;
*.bz2) bunzip2 $1 ;;
*.rar) unrar x $1 ;;
*.gz) gunzip $1 ;;
*.tar) tar xvf $1 ;;
*.tbz2) tar xvjf $1 ;;
*.tgz) tar xvzf $1 ;;
*.zip) unzip $1 ;;
*.Z) uncompress $1 ;;
*.7z) 7z x $1 ;;
*) echo "Unable to extract '$1'" ;;
esac
else
echo "'$1' is not a valid file"
fi
}
2016-03-16 12:23:43 +01:00
#exports
export EDITOR='vim'
2016-10-27 10:48:53 +02:00
export VISUAL='vim'
2016-12-19 18:53:04 +01:00
export BROWSER='google-chrome-stable'
2016-09-18 22:13:41 +02:00
export POWERLINE_CONFIG_COMMAND=/usr/bin/powerline-config
2016-03-16 12:23:43 +01:00
#deactivate gaskpass
unset SSH_ASKPASS
#man colors
export LESS_TERMCAP_mb=$'\E[01;31m'
export LESS_TERMCAP_md=$'\E[01;31m'
export LESS_TERMCAP_me=$'\E[0m'
export LESS_TERMCAP_se=$'\E[0m'
export LESS_TERMCAP_so=$'\E[01;44;33m'
export LESS_TERMCAP_ue=$'\E[0m'
export LESS_TERMCAP_us=$'\E[01;32m'
2016-09-06 22:24:54 +02:00
#ssh-agent
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket"
#zshrc node specific
source ~/.zshrc_node
2016-03-16 12:23:43 +01:00
#zshconf
2016-10-11 19:30:38 +02:00
autoload -U zmv
2016-03-16 12:23:43 +01:00
plugins=(git python)
source $ZSH/oh-my-zsh.sh
2016-09-06 22:24:54 +02:00
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh