From 6859650eecd2f9070571a93ff3d68ef73fcd0fa2 Mon Sep 17 00:00:00 2001 From: Jonathan Hodgson Date: Wed, 23 Oct 2019 20:32:52 +0100 Subject: [PATCH] Adds prompts when using sql commands and adds alias for tldr --- shells/shared/aliases | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/shells/shared/aliases b/shells/shared/aliases index 2f405849..7e9325ac 100644 --- a/shells/shared/aliases +++ b/shells/shared/aliases @@ -176,6 +176,9 @@ alias surecheckImport="$JAVA_HOME/bin/java -jar $ARMORY/host_build_reviews/windo alias rot13="tr 'A-Za-z' 'N-ZA-Mn-za-m'" +alias mysql="echo \"You might want to use mycli instead\"; /usr/bin/mysql" +alias postgres="echo \"You might want to use pgcli instead\"; /usr/bin/postgres" + # These aliases are related to projects # Make sqlmap put output in the current project folder alias sqlmap="[ -L ~/Projects/current ] && sqlmap --output-dir=\"~/Projects/current/sqlmap\"" @@ -187,3 +190,5 @@ alias pa="project switch --auto" alias pc="project switch --fzf" # Create a new project alias pn="project new" + +alias tl="tldr -a | tr ',' '\n' | tr -d ' ' | fzf --preview='tldr {} -m | bat -l markdown --color always' | xargs tldr -m | bat -l markdown --color always"