utils/bash/sources/10_aliases

39 lines
859 B
Plaintext
Raw Normal View History

2014-08-04 09:40:25 +00:00
#!/bin/bash
2014-11-25 02:48:52 +00:00
# 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
# some more ls aliases
alias ll='ls -l'
alias la='ls -A'
alias l='ls -CF'
2014-08-04 09:40:25 +00:00
# directory navigations
alias p=pushd
alias pp='pushd +2'
alias p3='pushd +3'
alias p4='pushd +4'
alias o=popd
alias d='dirs -v'
2022-08-11 16:39:41 +00:00
# default grep opts
alias grep='grep --color=auto --exclude-dir .git'
2014-08-04 09:40:25 +00:00
# Wget prefix
alias wget='wget --directory-prefix="$HOME/Downloads"'
2014-10-10 02:06:52 +00:00
2017-08-23 17:00:59 +00:00
# Pretty print sqlite3
alias sqlite3="sqlite3 -header -column"
2022-08-10 06:03:51 +00:00
# Kubernetes
alias kconf='kubectl config'