2018-04-29 02:05:09 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# glob filenames case-insensitively
|
|
|
|
shopt -s nocaseglob
|
|
|
|
|
|
|
|
# append history to history file, don't overwrite.
|
|
|
|
shopt -s histappend
|
|
|
|
|
|
|
|
# fix line wrap issues
|
|
|
|
shopt -s checkwinsize
|
|
|
|
|
2018-04-30 19:26:14 +00:00
|
|
|
# ignore case when tab-completing
|
|
|
|
set completion-ignore-case on
|
2018-04-29 05:26:04 +00:00
|
|
|
# find paths inside agares
|
|
|
|
export AGARES=${AGARES:-"$HOME/.agares"}
|
2018-04-29 02:05:09 +00:00
|
|
|
|
2018-05-02 01:59:49 +00:00
|
|
|
# update paths with installed executables:
|
|
|
|
export PATH=/usr/local/bin:$PATH
|
|
|
|
export PATH=/usr/local/share/python:$PATH
|
2018-05-02 03:17:59 +00:00
|
|
|
export PATH=/Users/jowj/Library/Python/3.6/bin:$PATH
|
|
|
|
|
2018-04-29 02:05:09 +00:00
|
|
|
# blatantly steal micah's ls aliases because they make SO MUCH SENSE omg.
|
2018-05-02 01:59:49 +00:00
|
|
|
alias python="python3"
|
|
|
|
alias py="python3"
|
2018-05-02 03:17:59 +00:00
|
|
|
alias pip="pip3"
|
2018-04-29 02:05:09 +00:00
|
|
|
alias lsa='ls -a'
|
|
|
|
alias lsl='ls -a -l'
|
|
|
|
alias lsli='lsl -i' # lsl+inodes
|
|
|
|
alias l1='ls -1'
|
|
|
|
alias llm='lsl -r -t' # lsl+ sort by modified time (lastest at bottom)
|
|
|
|
|
|
|
|
# blatantly steal micah's colorized man pages
|
|
|
|
# See: http://boredzo.org/blog/archives/2016-08-15/colorized-man-pages-understood-and-customized
|
|
|
|
# see: https://github.com/mrled/dhd/blob/800544cae0cc2f4e2b85b5dafae59babf75677fe/hbase/.bashrc
|
|
|
|
man() {
|
|
|
|
env \
|
|
|
|
LESS_TERMCAP_md=$'\e[1;36m' \
|
|
|
|
LESS_TERMCAP_me=$'\e[0m' \
|
|
|
|
LESS_TERMCAP_se=$'\e[0m' \
|
|
|
|
LESS_TERMCAP_so=$'\e[1;40;92m' \
|
|
|
|
LESS_TERMCAP_ue=$'\e[0m' \
|
|
|
|
LESS_TERMCAP_us=$'\e[1;32m' \
|
|
|
|
man "$@"
|
|
|
|
}
|
|
|
|
|
|
|
|
# history control variables
|
|
|
|
export HISTCONTROL=ignoreboth
|
|
|
|
export HISTSIZE="INFINITE"
|
|
|
|
export HISTFILESIZE=5000
|
|
|
|
export HISTCONTROL="ignorespace"
|
|
|
|
export HISTTIMEFORMAT="%Y-%m-%d %H:%M:%S "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# If set, the pattern "**" used in a pathname expansion context will
|
|
|
|
# match all files and zero or more directories and subdirectories.
|
|
|
|
#shopt -s globstar
|
|
|
|
|
|
|
|
# make less more friendly for non-text input files, see lesspipe(1)
|
|
|
|
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
|
|
|
|
|
|
|
|
# set variable identifying the chroot you work in (used in the prompt below)
|
|
|
|
if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
|
|
|
|
debian_chroot=$(cat /etc/debian_chroot)
|
|
|
|
fi
|
|
|
|
|
|
|
|
# enable color support of ls and also add handy aliases
|
|
|
|
if [ -x /usr/bin/dircolors ]; then
|
|
|
|
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
|
|
|
|
alias ls='ls --color=auto'
|
|
|
|
#alias dir='dir --color=auto'
|
|
|
|
#alias vdir='vdir --color=auto'
|
|
|
|
|
|
|
|
alias grep='grep --color=auto'
|
|
|
|
alias fgrep='fgrep --color=auto'
|
|
|
|
alias egrep='egrep --color=auto'
|
|
|
|
fi
|
|
|
|
|
2018-04-30 19:26:14 +00:00
|
|
|
export PS1="\t:\[$(tput sgr0)\]\[\033[38;5;93m\]\h\[$(tput sgr0)\]\[\033[38;5;15m\]:\[$(tput sgr0)\]\[\033[38;5;6m\][\w]:\[$(tput sgr0)\]\[\033[38;5;15m\] \[$(tput sgr0)\]✨ >> "
|
2018-04-29 21:21:18 +00:00
|
|
|
|
2018-04-29 23:18:39 +00:00
|
|
|
export CLICOLOR=1
|
|
|
|
export LSCOLORS=GxFxCxDxBxegedabagaced
|