mirror of
https://github.com/autistic-symposium/shell-whiz-toolkit.git
synced 2025-05-12 11:42:20 -04:00
60 lines
1.5 KiB
Bash
60 lines
1.5 KiB
Bash
# If you come from bash you might have to change your $PATH.
|
|
export PATH=$HOME/bin:/usr/local/bin:$PATH
|
|
|
|
# Path to your oh-my-zsh installation.
|
|
export ZSH=$HOME/.oh-my-zsh
|
|
|
|
# Set name of the theme to load --- if set to "random", it will
|
|
# load a random theme each time oh-my-zsh is loaded, in which case,
|
|
# to know which specific one was loaded, run: echo $RANDOM_THEME
|
|
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
|
|
ZSH_THEME="robbyrussell"
|
|
|
|
# Which plugins would you like to load?
|
|
plugins=(git extract web-search yum git-extras docker vagrant)
|
|
|
|
|
|
######################################################
|
|
# PERSONAL ALIASES
|
|
######################################################
|
|
|
|
alias home='cd ~'
|
|
alias rm='rm -i'
|
|
alias cp='cp -i'
|
|
alias mv='mv -i'
|
|
alias mkdir='mkdir -p'
|
|
alias h='history'
|
|
alias j='jobs -l'
|
|
alias which='type -a'
|
|
alias ..='cd ..'
|
|
alias jup="jupyter notebook"
|
|
alias du='du -kh' # Makes a more readable output.
|
|
alias df='df -kTh'
|
|
alias dc="docker-compose"
|
|
alias dcrun="docker-compose run --rm"
|
|
|
|
|
|
######################################################
|
|
# EXPORT OPTIONS
|
|
######################################################
|
|
|
|
export GREP_OPTIONS='--color=auto'
|
|
export GREP_COLOR='1;31' # green for matches
|
|
export CLICOLOR=230
|
|
export HISTCONTROL=ignoredups
|
|
|
|
|
|
#####################################################
|
|
# FUNCTIONS
|
|
#####################################################
|
|
|
|
function h() {
|
|
if [ -z "$*" ]; then
|
|
history 1
|
|
else
|
|
history 1 | egrep --color=auto "$@"
|
|
fi
|
|
}
|
|
|
|
|
|
source $ZSH/oh-my-zsh.sh
|