From 5378654346b6499ea4a5a01fb12282226f08e129 Mon Sep 17 00:00:00 2001 From: nico wellpott Date: Mon, 2 May 2022 07:37:25 +0200 Subject: Test Commit --- dot_bash_aliases | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 dot_bash_aliases diff --git a/dot_bash_aliases b/dot_bash_aliases new file mode 100644 index 0000000..4bc1288 --- /dev/null +++ b/dot_bash_aliases @@ -0,0 +1,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' -- cgit v1.2.3-54-g00ecf