-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bash_aliases
54 lines (43 loc) · 1.45 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
49
50
51
52
53
54
#!/bin/bash
# -------------------------------------------------------------------
# Change Directory
# -------------------------------------------------------------------
alias ..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias .....="cd ../../../.."
# -------------------------------------------------------------------
# HDD
# -------------------------------------------------------------------
alias df='df -h'
alias du='du -h'
# -------------------------------------------------------------------
# Utilities
# -------------------------------------------------------------------
# open with system default application
alias o='thunar'
alias afk="i3lock -c 000000"
alias notify=notify-send "$1"
alias dl="cd ~/Téléchargements"
alias g="git"
alias h="history"
#end of day
alias eod="notify 'Heyyy ! End Of Day dude' && sudo shutdown now"
# Detect which `ls` flavor is in use
if ls --color > /dev/null 2>&1; then # GNU `ls`
colorflag="--color"
else # OS X `ls`
colorflag="-G"
fi
# List all files colorized in long format
alias l="ls -laFH ${colorflag}"
# Always enable colored `grep` output
alias grep='grep --color=auto '
# IP addresses
alias pubip="curl https://ifconfig.me"
# vhosts
alias hosts='sudo vim /etc/hosts'
# copy working directory
alias cwd='pwd | tr -d "\r\n" | xclip -selection clipboard'
# Pipe my public key to my clipboard.
alias pubkey="more ~/.ssh/id_rsa.pub | xclip -selection clipboard | echo '=> Public key copied to pasteboard.'"