Collin J. Doering
0e970add95
Setup the following in .zshrc and bashrc: - update path putting paths with form ~/* before others to make them higher priority - setup gpg agent - disabled keychain Signed-off-by: Collin J. Doering <rekahsoft@gmail.com>
65 lines
1.8 KiB
Bash
65 lines
1.8 KiB
Bash
|
|
# 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 spacman='sudo pacman'
|
|
|
|
# Alias' to make some commands a little less terse
|
|
alias skreen='screen -c /dev/null'
|
|
alias tranr='transmission-remote'
|
|
alias ctl='systemctl'
|
|
alias ctlu='systemctl --user'
|
|
alias sctl='sudo systemctl'
|
|
alias qemu='qemu-system-x86_64 -enable-kvm'
|
|
alias mplayer-ascii='mplayer -vo aa:driver=curses -monitorpixelaspect 0.5 -really-quiet'
|
|
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"
|
|
|
|
# Set language
|
|
# export LANG="en_US.UTF-8"
|
|
# export LC_MESSAGES="C"
|
|
|
|
PS1='[\u@\h: \w]\$ '
|
|
|
|
# Turn off noscroll
|
|
stty stop undef
|
|
|
|
# Modify path variable to allow execution of the following:
|
|
# * mathematica / tools
|
|
# * nxclient / associated tools
|
|
# * maven tools
|
|
export PATH=export PATH=$HOME/.cabal/bin:$HOME/.gem/ruby/2.0.0/bin:$HOME/.bin:$HOME/.texlive/2013/bin/x86_64-linux:${PATH}:/opt/maven/bin:/opt/NX/bin
|
|
|
|
# Setup gpg-agent
|
|
if [ -f "${HOME}/.gpg-agent-info" ]; then
|
|
. "${HOME}/.gpg-agent-info"
|
|
export GPG_AGENT_INFO
|
|
export SSH_AUTH_SOCK
|
|
fi
|
|
|
|
# start keychain
|
|
#eval `keychain --eval --timeout 10 --quiet --agents ssh id_rsa`
|
|
|
|
# Default editor
|
|
export EDITOR="emacs -nw"
|