-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bash_aliases
48 lines (41 loc) · 1.17 KB
/
.bash_aliases
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# functions
mkcd ()
{
mkdir -p -- "$1" && cd -P -- "$1"
}
up ()
{
sudo apt update && sudo apt upgrade
}
docker-post-install ()
{
sudo groupadd docker && sudo usermod -aG docker $USER && newgrp docker
}
docker-hello ()
{
docker run --name hello hello-world && docker rm hello && docker rmi hello-world:latest
}
alias intellij='~/.local/share/JetBrains/Toolbox/apps/intellij-idea-community-edition/bin/idea.sh'
# /opt/idea/bin/idea.sh
alias c='clear'
alias ll='ls -lh --color=auto'
alias la='ls -A --color=auto'
alias l='ls -CF --color=auto'
alias mkdir='mkdir -pv'
alias free='free -mt'
alias myip='curl ipinfo.io/ip'
alias show='sudo apt show'
alias search='sudo apt search'
alias reboot='sudo reboot'
alias shutdown='sudo shutdown now'
alias snvim='sudo nvim'
# docker
alias docker-post='newgrp docker'
# Data, Dia e Hora (Ou um, ou os três).
alias date='date +" %t %y/%m/%d %n %t Week:%U/53 %n %t Day:%j/364 %n %t %A %t %T"'
# alias data='date +" %t %y/%m/%d %n %t Week:%U/53"'
# alias time='date +" %t %A %t %T"'
# alias day='date +" %t %A %t %j/364"'
# Python venv - Virtual Enviroment
alias py_venv='python3 -m venv ./venv'
alias py_venv_act='source ./venv/bin/activate'