1
0
Fork 0
mirror of https://github.com/kastdeur/dotfiles.git synced 2025-06-18 05:06:38 +02:00

[bash] rename bash/rc and bash/bash.d

This commit is contained in:
Eric-Teunis de Boone 2022-02-10 20:07:37 +01:00
parent f67517fdec
commit 6b0d6af2f8
10 changed files with 8 additions and 6 deletions

View file

@ -0,0 +1,52 @@
# 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'
alias ip='ip --color=auto'
fi
# some more ls aliases
alias l.='ls -d *'
alias ll='ls -l --si -v --group-directories-first'
alias la='ls -A'
alias lla='ll -A'
alias l='ls -CF'
# make mkdir nicer
alias mkdir='mkdir -p -v'
# Use vim if possible instead of vi
if command -v vim > /dev/null; then
alias vi='vim'
else
alias vim='vi'
fi
alias e="${EDITOR:-vi}"
# Alias expansion in sudo arguments
alias sudo='sudo '
# Reload bashrc
alias bashreload="source ~/.bashrc"
# Easy calculator instead of bc
alias pc='python -ic "from __future__ import division; from math import *"'
# Moving around
alias ~='cd ~'
alias ..='cd ..'
alias ...='cd ../../'
# Computer control
alias blank='sleep 1s && xset dpms force off'
alias lock='blank; xscreensaver-command --lock'
# whatever
alias shrug="echo '¯\_(ツ)_/¯'"
alias pinguin="echo 🐧"