-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bash_aliases
41 lines (31 loc) · 1.23 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
#
# ~/.bash_aliases
#
# Save or append this file to ~/.bash_aliases
# Uncomment or add the following lines to ~/.bashrc
# otherwise this file wont work.
#if [ -f ~/.bash_aliases ]; then
# . ~/.bash_aliases
#fi
# Some ls aliases
alias l='ls -CF'
alias la='ls -A'
alias ll='exa -al --color=always --group-directories-first'
alias ls='ls --color=auto'
# Some quality of life aliases
alias cp="cp -i" # confirm before overwriting something
alias df='df -h' # human-readable sizes
alias free='free -m' # show sizes in MB
alias np='nano -w PKGBUILD'
alias more=less
# Git log to show compact history in a decorated dag.
alias gitlog="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
# Alias to launch android studio
alias studio="bash ~/Applications/android-studio/bin/studio.sh &"
# Alias to ssh into raspberry pi
alias sshpi='ssh [email protected]'
# Alias to ssh into centos vm
alias sshcentos='ssh -p 3022 [email protected]'
# Alias to configure git alias for working on dotfiles
# https://www.atlassian.com/git/tutorials/dotfiles
alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'