dotfiles/.bash_aliases

30 lines
835 B
Bash
Raw Permalink Normal View History

2021-04-21 19:27:30 +02:00
# General
2021-04-27 16:58:25 +02:00
alias 'clear=echo "No more clear for you"'
2021-12-18 14:23:11 +01:00
alias 'nvim=echo "Use vim!"'
alias 'vim=command nvim'
2021-06-04 16:24:23 +02:00
# alias 'e=$EDITOR'
2021-04-21 19:27:30 +02:00
alias 'ec=$EDITOR ~/.bashrc'
alias 'sc=source ~/.bashrc'
2021-04-27 16:58:25 +02:00
# Dory can speak to whales
2021-05-02 16:06:54 +02:00
alias 'whales=sudo du -sch * | sort -hk1'
alias 'dory=sudo du -sch * | sort -hk1'
2021-04-27 16:58:25 +02:00
2021-04-21 19:27:30 +02:00
# Beautiful ls
alias ls='lsd --color=auto --group-dirs=first'
alias ll='lsd --color=auto --long --almost-all --group-dirs=first'
2021-04-21 19:27:30 +02:00
# Docker & docker-compose
alias d=docker
alias dc=docker-compose
alias dcu='docker-compose up --detach --build && docker-compose logs --follow'
alias dcb='docker-compose build'
alias dcd='docker-compose down'
alias dcl='docker-compose logs'
# Dotfile management
alias dots="git --git-dir='$HOME/.cfg' --work-tree='$HOME'"
2021-12-18 14:23:11 +01:00
# Add my ssh identify file to the ssh-agent
alias ssha='eval $(ssh-agent) && ssh-add'