summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornico wellpott <nico@magicbroccoli.de>2022-05-02 07:37:25 +0200
committerNico Wellpott <nico.wellpott@btc-es.de>2022-05-02 08:30:44 +0200
commit5378654346b6499ea4a5a01fb12282226f08e129 (patch)
tree0c5eddd65fafc949c4b41d3131cb7b4d6b6aed4a
parent4dfd04e886f4cc8d808448cba12413531e345bc2 (diff)
Test CommitHEADmaster
-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'