#!/usr/bin/env bash if [[ $(uname) == Darwin ]]; then alias ls='ls -G' fi if [[ $(uname) == Linux ]]; then alias ls='ls --color=auto' alias grep='grep --color=auto' alias fgrep='fgrep --color=auto' alias egrep='egrep --color=auto' fi if command -v bat &> /dev/null ; then alias bat='bat --plain --theme zenburn' alias cat='bat --plain --theme zenburn --pager never' fi # Move around to common locations alias desktop="cd ${XDG_DESKTOP_DIR}" alias podcasts="cd ${XDG_PODCAST_DIR}" alias code='cd ~/code/ ' alias music="cd ${XDG_MUSIC_DIR}" alias documents="cd ${XDG_DOCUMENTS_DIR}" alias curl='curl --proto-default https --silent ' alias 644='chmod 644 ' alias 755='chmod 755 ' alias 600='chmod 600 ' alias 700='chmod 500 ' alias +x='chmod +x ' alias ..='cd .. ' alias rsync-win='rsync --recursive --verbose --times --modify-window=1 ' alias simple-http-server='python3 -m http.server' alias wget-opendir='wget -r -l 0 -c -nc -np -e robots=off --random-wait --limit-rate=800000k --reject=html,htm,index' alias numfiles='find . -maxdepth 1 -type f | wc -l' alias slugify="sed -e 's/[^[:alnum:]]/-/g' | tr -s '-' | tr A-Z a-z" alias take='sudo chown $(whoami):$(whoami) '