-
Notifications
You must be signed in to change notification settings - Fork 2
/
.bash_aliases
39 lines (34 loc) · 992 Bytes
/
.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
# Programs
alias cal="cal -m"
alias g++="g++ -Wall -Wextra -pedantic -O3 -std=c++0x"
alias vi="vim"
alias xclip="xclip -selection c"
# File handling and moving around
alias cd..="cd .."
alias cp="cp -i"
alias fixdir="find . -type d -exec chmod 755 {} +"
alias fixfiles="find . -type f -exec chmod 644 {} +"
alias grep="grep -i"
alias ll="ls -l"
alias ls="ls -h --color=auto --group-directories-first --time-style='+%d.%m.%y %H:%M'"
alias mkdir="mkdir -p"
alias mv="mv -i"
alias rm="rm -I"
alias rsync="rsync --progress"
alias unp="unp -u"
# General
alias df="df -h"
alias diff="colordiff"
alias du="du -sh"
alias myip="wget ipecho.net/plain -O - -q; echo"
alias ping="ping -c 5"
alias tree="tree -C"
# Shorthand for editing dotfiles
alias aliases="vim $HOME/.bash_aliases"
alias bashrc="vim $HOME/.bashrc"
alias vimrc="vim $HOME/.vimrc"
# Merge multiple SSH configs
if [ -d "$HOME/.ssh/config.d" ]; then
alias ssh="cat $HOME/.ssh/config.d/* > $HOME/.ssh/config; ssh"
fi
# vim: ft=sh