#!/bin/bash
# 
# SCRIPT NAME:
# .aliases
#
# AUTHOR:
# Severin Kaderli <severin@kaderli.dev>
#
# DESCRIPTION:
# This script is used to define aliases for commands.
#
# USAGE:
# This script is sourced by .bashrc

# Alias for clear because I sometimes type the DOS command instead
alias cls="clear"

# Alias for using lsd as ls replacement
alias ls='lsd --icon never'
alias la="ls -al"
alias lt="ls --tree"

# Alias for using ripgrep as grep replacement
alias grep="rg -n"

# Alias for using bat as cat replacement
alias cat="bat"

# Alias to get to my Projects folder
alias pj="cd ~/Projects"

# Alias to get to my Downloads folder
alias dl="cd ~/Downloads"

# Alias to get to my Documents folder
alias doc="cd ~/Documents"

# Alias for opening my code editor
alias e="code"

# Alias for wget to use XDG directories
alias wget='wget --hsts-file="${XDG_CACHE_HOME}/wget-hsts"'

# Alias for svn to use XDG directories
alias svn='svn --config-dir "${XDG_CONFIG_HOME}/subversion"'

# Alias for gpg2 to use XDG directories
alias gpg2='gpg2 --homedir "${XDG_DATA_HOME}/gnupg"'

# Alias for sqlite3 to use XDG directories
alias sqlite3='sqlite3 -init "${XDG_CONFIG_HOME}/sqlite3/sqliterc"'

alias t='task todo'
alias ta='task add'