summaryrefslogtreecommitdiff
path: root/.config/aliasrc
blob: f4782b445661f05efda47c9df8b80f20ff229aa0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# The $HOME directory is the working directory for the bare dotfiles git repo.
# As such we can't use the git command in this directory if we want to work with the repo.
# Instead the dotfiles alias is used.
alias dotfiles='/usr/bin/git --git-dir=$HOME/.local/src/dotfiles --work-tree=$HOME'

alias ls="ls -hN --color=auto --group-directories-first"
alias ll='ls -l'

alias cp='cp -iv'
alias rm='rm -iv'
alias mv='mv -iv'

alias grep="grep --color=auto"
alias	diff="diff --color=auto"

# Git
alias gs='git status'
alias ga='git add'
alias gb='git branch'
alias gc='git commit'
alias gd='git diff'
alias go='git checkout'
alias gl='git log --pretty=format:"%h %ad | %s%d [%an]" --graph --date=short'