# Aliases for emacs commands
alias ff find-file $1

# Aliasing standard shell commands to emacs alternatives
alias less view-file $1
# Changing "ls" to "exa"

alias ls exa -al --color=always --group-directories-first $*  # my preferred listing
alias la exa -a --color=always --group-directories-first $*   # all files and dirs
alias ll exa -l --color=always --group-directories-first $*   # long format
alias lt exa -aT --color=always --group-directories-first $*  # tree listing
alias l. exa -a1 $* | grep "^\."                              # list hidden files

# Merge Xresources
alias merge xrdb -merge ~/.Xresources

# Confirm before overwriting something
alias cp cp -i $1
alias mv mv -i $1
alias rm rm -i $1