1
0
Fork 0
mirror of https://github.com/kastdeur/dotfiles.git synced 2024-12-22 01:03:35 +01:00

[bash] add a few aliases

This commit is contained in:
Eric Teunis de Boone 2022-02-10 19:41:16 +01:00
parent b8f391ae20
commit 28be1944fd

View file

@ -8,6 +8,7 @@ if [ -x /usr/bin/dircolors ]; then
alias grep='grep --color=auto' alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto' alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto' alias egrep='egrep --color=auto'
alias ip='ip --color=auto'
fi fi
# some more ls aliases # some more ls aliases
@ -17,12 +18,19 @@ alias la='ls -A'
alias lla='ll -A' alias lla='ll -A'
alias l='ls -CF' alias l='ls -CF'
# make mkdir nicer
alias mkdir='mkdir -p -v'
# Use vim if possible instead of vi # Use vim if possible instead of vi
if [[ $(command -v vim) ]]; then if [[ $(command -v vim) ]]; then
alias vi='vim' alias vi='vim'
else else
alias vim='vi' alias vim='vi'
fi fi
alias e="${EDITOR:-vi}"
# Alias expansion in sudo arguments
alias sudo='sudo '
# Reload bashrc # Reload bashrc
alias bashreload="source ~/.bashrc" alias bashreload="source ~/.bashrc"
@ -33,6 +41,7 @@ alias pc='python -ic "from __future__ import division; from math import *"'
# Moving around # Moving around
alias ~='cd ~' alias ~='cd ~'
alias ..='cd ..' alias ..='cd ..'
alias ...='cd ../../'
# Computer control # Computer control
alias blank='sleep 1s && xset dpms force off' alias blank='sleep 1s && xset dpms force off'