-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathaliases
69 lines (53 loc) · 1.96 KB
/
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
function mkv2mp4 () {
avconv -i $1 -c:v libx264 "$1-output.mp4"
}
# Shortcuts
alias g="git"
alias h="history"
alias j="jobs"
alias v="lvim"
alias vi="lvim"
# Easier navigation: .., ..., ~ and -
alias cdp="cd ~/Projects/"
alias ..="cd .."
alias cd..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias .....="cd ../../../.."
alias ~="cd ~" # `cd` is probably faster to type though
alias -- -="cd -"
alias go-dft-workspace="cd ~/Documentos/workspace/dafiti/"
# programs
alias subl='open -a Sublime\ Text'
alias idea='/opt/idea15/bin/idea.sh &'
alias safari='open -a safari'
alias firefox='open -a firefox'
alias chrome='open -a google\ chrome'
# ls aliases
alias ls='ls -h'
alias ll='ls -lhF'
alias la='ls -lhA'
alias l='ls -CF'
# recording window
alias gravar='sh ~/.bin/recording-window.sh'
# updates
alias update='sudo softwareupdate -i -a; brew update; brew upgrade; brew cleanup; npm update npm -g; npm update -g;'
# cleanup
alias emptytrash="sudo rm -rfv /Volumes/*/.Trashes; sudo rm -rfv ~/.Trash; sudo rm -rfv /private/var/log/asl/*.asl"
alias start-postgres="docker run --rm -P -p 5432:5432 --name pg_test eg_postgresql"
alias start-mysql="docker run --rm -P -p 3306:3306 --name my_test -e MYSQL_ROOT_PASSWORD=docker mysql"
alias start-mongodb="docker run --rm -P -p 27017:27017 --name mongo_test eg_mongodb"
# postgresql
alias psql-king-sandbox="psql -h 172.22.15.254 -p 5432 -U openfire -d openfire"
alias psql-king-prod="psql -h dft-sa-king-db02.aws.dafiticorp.com.br -p 5432 -U openfire -d openfire"
# Remover kernels antigos
alias remove-old-kernels='sh ~/.bin/remove_old_kernels.sh'
# docker
alias docker-stop-all='docker rm -f $(docker ps -a -q)'
alias docker-rmi-none='docker rmi $(docker images -f "dangling=true" -q)'
alias vimrc='vim ~/dotfiles/vimrc'
alias vimplug='vim ~/dotfiles/vim/plug.vim'
alias viminstallplug='vim +PlugInstall +qall'
alias vimtmux='vim ~/dotfiles/tmux.conf'
alias vimzsh='vim ~/dotfiles/zshrc'
alias ssh-easynvest-dev="ssh easynvest-dev"