-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbash_aliases
42 lines (31 loc) · 1.67 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
# alias vish='vim ~/.bashrc'
# alias srcsh='source ~/.bashrc'
alias vish='vim ~/.profile'
alias srcsh='source ~/.profile'
alias update_aliases='curl -s https://raw.githubusercontent.com/writeonly/cli/master/bash_aliases_update.sh | bash'
alias install='sudo apt-get install'
alias remove='sudo apt-get remove --purge'
alias clean='sudo apt-get clean && sudo apt-get autoclean && sudo apt-get autoremove'
alias update='sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade'
alias sources_list='sudo vim /etc/apt/sources.list'
alias rf='rm -rf'
alias ..='cd ..'
alias cwd='cd `pwd`'
alias ll='ls -l'
alias la='ll -a'
alias m='mvn'
alias mvn='mvn -e'
alias g='git'
alias guser='git config user.name "Kamil Adam" && git config user.email [email protected]'
alias d='docker'
alias docker_rmi_all='docker kill $(docker ps -q); docker rm $(docker ps -a -q); docker rmi $(docker images -q)'
alias docker_rm_all='docker kill $(docker ps -q); docker rm $(docker ps -a -q)'
alias j8="export JAVA_HOME=`/usr/libexec/java_home -v 1.8`; java -version"
alias j9="export JAVA_HOME=`/usr/libexec/java_home -v 9`; java -version"
alias j10="export JAVA_HOME=`/usr/libexec/java_home -v 10`; java -version"
alias j11="export JAVA_HOME=`/usr/libexec/java_home -v 11`; java -version"
alias j12="export JAVA_HOME=`/usr/libexec/java_home -v 12`; java -version"
alias j13="export JAVA_HOME=`/usr/libexec/java_home -v 13`; java -version"
alias j14="export JAVA_HOME=`/usr/libexec/java_home -v 14`; java -version"
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm