1
0
Fork 0
dotfiles/bash/alias.sh

34 lines
1019 B
Bash
Raw Normal View History

2017-03-10 10:42:12 +00:00
# General
2020-09-12 07:58:04 +00:00
alias ll="ls -lAFh --color"
2023-02-22 12:27:23 +00:00
alias duh="du -hs * | sort -rh"
2019-08-30 10:40:25 +00:00
alias dedup="awk '!visited[$0]++'"
2023-02-22 14:33:55 +00:00
alias dfh="df -h | grep -v '/var/lib/docker\|/snap/\|tmpfs'"
alias ,ssh-agent-forwarding="eval \`ssh-agent\` && ssh-add ~/.ssh/id_rsa"
2017-03-10 10:42:12 +00:00
# Git
alias ga="git add -u; git add .; git status -sb"
alias gb="git branch -v"
2019-08-30 10:40:25 +00:00
alias gc="git ci --allow-empty -m"
2017-03-10 10:42:12 +00:00
alias gd="git diff"
alias gdc="git diff --cached"
alias gl="git log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) %C(bold
green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all"
alias gp="git push"
alias gs="git status -sb"
alias gu="git up"
alias gcl="git co -"
2017-10-05 11:17:39 +00:00
alias gml="git merge - --no-edit"
2017-03-10 10:42:12 +00:00
# Ruby
2024-02-04 10:28:19 +00:00
alias bd="bundle install --jobs=$(getconf _NPROCESSORS_ONLN)"
2020-09-12 07:58:04 +00:00
alias bdc="bundle config set path 'vendor/bundle'"
2019-08-30 10:40:25 +00:00
alias b="bundle exec"
alias br="bundle exec rails"
2017-03-10 10:42:12 +00:00
# Go
alias goi="go install ./..."
2019-08-30 10:40:25 +00:00
alias gg='rg -g "*.go"'
2021-04-23 22:26:43 +00:00
2024-02-04 10:28:19 +00:00
# Rust
2021-04-23 22:26:43 +00:00
alias cr="cargo run --quiet --"