summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dot_bash_aliases28
1 files changed, 28 insertions, 0 deletions
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'