summaryrefslogtreecommitdiffstats
path: root/dot_bash_aliases
blob: 4bc12889cfd7b0d2a3bbf248a1a09dd63e339d42 (plain)
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
# useful aliases
alias reloadbash='. ~/.bash_profile'
alias ..='cd ..'
alias space='df -hl'
alias stor="du -hls"
alias env='env | sort'

if [ -f /usr/bin/bat ]; then
    alias cat='bat'
fi

# ansible
alias ap='ansible-playbook'
alias ahostvar="ansible -m debug -a 'var=hostvars[inventory_hostname]'"

# shortcuts
alias y='yay'

# safety precautions
alias chown='chown --preserve-root'
alias chmod='chmod --preserve-root'
alias chgrp='chgrp --preserve-root'

# python
alias pipu='pip list --outdated --format=freeze | grep -v "^\-e" | cut -d = -f 1  | xargs -n1 pip install -U'

#weather
alias weather='curl http://wttr.in/Oldenburg'