71 lines
2.1 KiB
Bash
71 lines
2.1 KiB
Bash
# The following lines were added by compinstall
|
|
|
|
zstyle ':completion:*' completer _list _expand _complete _ignored _match _correct _approximate _prefix
|
|
zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
|
|
zstyle ':completion:*' matcher-list '' 'm:{[:lower:][:upper:]}={[:upper:][:lower:]}' 'r:|[._-/,+]=** r:|=**' 'l:|=* r:|=*'
|
|
zstyle ':completion:*' max-errors 5
|
|
zstyle ':completion:*' preserve-prefix '//[^/]##/'
|
|
zstyle :compinstall filename '/home/collin/.zshrc'
|
|
|
|
autoload -Uz compinit
|
|
compinit
|
|
# End of lines added by compinstall
|
|
# Lines configured by zsh-newuser-install
|
|
HISTFILE=~/.histfile
|
|
HISTSIZE=1000
|
|
SAVEHIST=1000
|
|
bindkey -e
|
|
# End of lines configured by zsh-newuser-install
|
|
|
|
# Check for an interactive session
|
|
[ -z "$PS1" ] && return
|
|
|
|
# Alias' to make command output prettier (use color with some commands by default)
|
|
alias ls='ls --color=auto'
|
|
alias grep='grep --color=auto'
|
|
alias fgrep='fgrep --color-auto'
|
|
alias egrep='egrep --color-auto'
|
|
alias ncmpc='ncmpc -c'
|
|
alias pacman='pacman-color'
|
|
alias spacman='sudo pacman-color'
|
|
|
|
# Alias' to make some commands a little less terse
|
|
alias skreen='screen -c /dev/null'
|
|
alias tranr='transmission-remote'
|
|
alias ctlu='systemctl --user'
|
|
alias sctl='sudo systemctl'
|
|
alias qemu='qemu-system-x86_64 -enable-kvm'
|
|
alias s='sudo'
|
|
|
|
# Shortcuts for port-knocking on rekahsoft-mini *DEPRECIATED*
|
|
alias knk='knock rekahsoft-mini 7713:tcp 1377:udp && sleep 3s && '
|
|
alias knkc='knk ssh rekahsoft-mini '
|
|
alias kgit='knk git'
|
|
|
|
# Set colors to use with grep
|
|
export GREP_COLOR="1;33"
|
|
|
|
# Use source-highlight to make code in less syntax highlighted
|
|
export LESSOPEN="| /usr/bin/src-hilite-lesspipe.sh %s"
|
|
export LESS=' -R '
|
|
|
|
# Set text/background colors for ls
|
|
export LS_COLORS="di=01;37"
|
|
|
|
PS1="[%n@%M: %~]%% "
|
|
|
|
# Turn off noscroll
|
|
stty stop undef
|
|
|
|
# Modify path variable to allow execution of the following:
|
|
# * mathematica / tools
|
|
# * nxclient / associated tools
|
|
# * maven tools
|
|
export PATH=${PATH}:/usr/local/bin:/opt/maven/bin:/opt/NX/bin:/home/collin/.cabal/bin:/home/collin/.bin
|
|
|
|
# start keychain
|
|
eval `keychain --eval --timeout 10 --quiet --agents ssh id_rsa`
|
|
|
|
# Default editor
|
|
export EDITOR="emacs -nw"
|