Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # The following lines were added by compinstall
- zstyle ':completion:*' completer _expand _complete _ignored _correct _approximate
- zstyle :compinstall filename '/home/joe/.zshrc'
- autoload -Uz compinit
- compinit
- # End of lines added by compinstall
- # Lines configured by zsh-newuser-install
- HISTFILE=~/.histfile
- setopt appendhistory beep notify
- # End of lines configured by zsh-newuser-install
- autoload -Uz promptinit
- promptinit
- prompt adam2
- # key bindings
- bindkey "\e[1~" beginning-of-line
- bindkey "\e[4~" end-of-line
- bindkey "\e[5~" beginning-of-history
- bindkey "\e[6~" end-of-history
- bindkey "\e[3~" delete-char
- bindkey "\e[2~" quoted-insert
- bindkey "\e[5C" forward-word
- bindkey "\eOc" emacs-forward-word
- bindkey "\e[5D" backward-word
- bindkey "\eOd" emacs-backward-word
- bindkey "\ee[C" forward-word
- bindkey "\ee[D" backward-word
- bindkey "^H" backward-delete-word
- # for rxvt
- bindkey "\e[8~" end-of-line
- bindkey "\e[7~" beginning-of-line
- # for non RH/Debian xterm, can't hurt for RH/DEbian xterm
- bindkey "\eOH" beginning-of-line
- bindkey "\eOF" end-of-line
- # for freebsd console
- bindkey "\e[H" beginning-of-line
- bindkey "\e[F" end-of-line
- # completion in the middle of a line
- bindkey '^i' expand-or-complete-prefix
- # color for ls
- if [[ -x "`whence -p dircolors`" ]]; then
- eval `dircolors`
- alias ls='ls -F --color=auto'
- else
- alias ls='ls -F'
- fi
- # suffix alias
- alias -s txt=gedit
- #alias -s sh=vim
- alias -s mp3=ncmpcpp
- alias -s jpg=gpicview
- export PANNEL_FIFO="/tmp/pannel-fifo"
- # Uncomment the following line if you want to change the command execution time
- # stamp shown in the history command output.
- # The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
- HIST_STAMPS="mm/dd/yyyy"
- # User configuration
- export PATH="/usr/local/sbin:/usr/lib:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/joe/Scripts:/home/joe/bin:/var/run/user/1000/gvfs/:/usr/bin/core_perl"
- # Options
- setopt extendedglob # ERE
- setopt correctall
- setopt sharehistory
- setopt extendedhistory
- setopt hist_ignore_all_dups
- # Joe Mods -- Bashrc import
- alias sudo='sudo -E' # Perserves environment so you can use ~user/.vimrc
- alias ls='ls --color=auto'
- alias grep -E='grep -E --color=auto'
- alias grep='grep --color=auto'
- alias fgrep='fgrep --color=auto'
- alias egrep='egrep --color=auto'
- alias vi="vim"
- alias pacman="sudo pacman"
- alias tunes="ncmpcpp"
- alias youtube-dl="youtube-dl -ci -o '%(title)s-%(upload_date)s-%(ext)s'"
- alias df='df -hTl -x tmpfs -x devtmpfs --total'
- # Geeknote
- alias gn-all='geeknote find --search "*"'
- alias gn='geeknote'
- alias gne='geeknote edit'
- alias gns='geeknote find --search'
- HISTCONTROL=erasedups
- PROMPT_COMMAND='history -a; history -n' # write command to histopry when issued as opposed to the default end of session.
- HISTFILESIZE=5000
- HISTSIZE=5000
- EDITOR=vim; export $EDITOR
- # Functions ---
- up ()
- {
- sudo yaourt -Syy
- sudo yaourt -Syu
- sudo pacman -Syc
- sudo pacman -R $(sudo pacman -Qtdq)
- }
- Family-Tux ()
- {
- clear
- figlet Family-Tux
- ssh -X family@10.0.0.240
- }
- Abigail-Tux ()
- {
- clear
- figlet Abigail-Tux
- ssh -X abigail@10.0.0.246
- }
- Kevin-Tux ()
- {
- clear
- figlet Kevin-Tux
- ssh -X joe@10.0.0.247
- }
- Aiden-Tux ()
- {
- clear
- figlet Aiden-Tux
- ssh -X aiden@10.0.0.248
- }
- Envy-Tux ()
- {
- clear
- figlet Envy-Tux
- ssh -X joe@10.0.0.249
- }
- Tux-Box ()
- {
- clear
- figlet Tux-Box
- ssh -X joe@10.0.0.250
- }
- goodnight ()
- {
- ssh aiden@10.0.0.248 'sudo -A shutdown -h now && exit'
- echo -e "\e[00;31m Aiden-Tux has been shutdown for the night $USER \e[00m"
- echo
- echo -e "\e[00;32m --- Processing ---- \e[00m"
- ssh joe@10.0.0.247 'sudo -A shutdown -h now && exit'
- echo
- echo -e "\e[00;31m Kevin-Tux has been shutdown for the night $USER \e[00m"
- }
- # Enhance colored ls output; for example, broken (orphan) symlinks will start showing in a red hue. Add the following to ~/.bashrc and relogin, or source the file:
- eval $(dircolors -b)
- export GREP_COLOR="1;33"
- # Enable code syntax coloring by adding
- export LESS="-R"
- # Name of the host with T-Mux
- case "$TERM" in
- screen*)
- PROMPT_COMMAND="printf '\033k$(hostname -s)\033\\';"${PROMPT_COMMAND}
- ;;
- esac
- case "$TERM" in
- xterm*) TERM=xterm-256color
- esac
- # Color Man Pages
- man () \
- {
- env \
- LESS_TERMCAP_mb=$(printf "\e[1;37m") \
- LESS_TERMCAP_md=$(printf "\e[1;37m") \
- LESS_TERMCAP_me=$(printf "\e[0m") \
- LESS_TERMCAP_se=$(printf "\e[0m") \
- LESS_TERMCAP_so=$(printf "\e[1;47;30m") \
- LESS_TERMCAP_ue=$(printf "\e[0m") \
- LESS_TERMCAP_us=$(printf "\e[0;36m") \
- man "$@"
- }
- # Terminal Launch
- alsi -c1=white -c2=blue -t -u
- who -luHb
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement