-
Notifications
You must be signed in to change notification settings - Fork 1
/
aliases.sh
34 lines (27 loc) · 875 Bytes
/
aliases.sh
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
31
32
33
34
alias ..="cd .."
alias ls='ls -alhG'
alias dotfiles="cd ~/code/private/dotfiles"
alias python=/usr/bin/python3
# GIT
alias g="git"
alias gpl="git pl"
alias gps="git push"
alias gst="git st"
# Docker
alias docker-compose="docker compose"
alias dclean="docker container prune -f && docker image prune -af --filter until=168h && docker volume prune -af"
# AWS & EKS
source ~/code/private/dotfiles/aws-switch-to.sh
alias staging="aws_switch_to staging"
alias production="aws_switch_to production"
alias services="aws_switch_to services"
alias kaeuferportal="aws_switch_to kp"
alias development="aws_switch_to dev"
alias data="aws_switch_to data"
update_ruby(){
local version=$1
echo $version >.ruby-version
sed -i -E "s/FROM ruby:[a-z0-9.-]{2,}/FROM ruby:$version/" Dockerfile
sed -i -E "s/ruby [a-z0-9.-]{2,}/ruby $version/" Gemfile.lock
docker-compose build
}