blob: de751eb429bd5e46405d0b2b1e18df85e52cbba9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# 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'
# Nvim
alias v='nvim'
alias vim='nvim'
# Laravel
alias sail='[ -f sail ] && bash sail || bash vendor/bin/sail'
|