From a04caf4f28ddeaae933de0f01e0034e2f054bb8c Mon Sep 17 00:00:00 2001 From: TKE Date: Tue, 8 Feb 2022 17:27:35 +0100 Subject: [PATCH] Update Aliases --- bash_aliases | 1 + shell_aliases | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/bash_aliases b/bash_aliases index a6c16d5..dfaab53 100644 --- a/bash_aliases +++ b/bash_aliases @@ -6,3 +6,4 @@ alias -- '-'='popd' [[ -f ~/.shell_aliases ]] && . ~/.shell_aliases [[ -f ~/.config/z.sh ]] && . ~/.config/z.sh HISTTIMEFORMAT="%F %T " +shopt -s autocd \ No newline at end of file diff --git a/shell_aliases b/shell_aliases index 198d1f4..0cfa9c5 100644 --- a/shell_aliases +++ b/shell_aliases @@ -35,5 +35,8 @@ function bindiff() { cmp -l "${1}" "${2}" | gawk '{printf "%s,%02X,%02X\n",$1,st function avscan(){ av="${1:-kaspersky}" ; if [ "${av}" == "update" ] ; then ( docker pull tabledevil/kaspersky ; docker pull tabledevil/sep ; docker pull tabledevil/clamav) ; elif [[ $# -eq 2 ]] ; then dritpwro "tabledevil/${av}" "${2}" ; else dritpwro --network=none "tabledevil/${av}" scan ; fi ; } function dockerfa() { [[ $# -eq 0 ]] && wpd=$(readlink -f . ) || wpd=$(readlink -f "${1}"); docker run -it --rm -v "${wpd}":/data tabledevil/file-analysis;} function docker_killall() { docker rm $(docker stop $(docker ps -a -q --filter ancestor="${1}" --format="{{.ID}}")) ; } -function dockertags() { tags=`wget -q https://registry.hub.docker.com/v1/repositories/${1}/tags -O - | sed -e 's/[][]//g' -e 's/"//g' -e 's/ //g' | tr '}' '\n' | awk -F: '{print $3}'` ; if [ -n "$2" ] ; then tags=` echo "${tags}" | grep "$2" ` ; fi ; echo "${tags}" -} +function dockertags() { tags=`wget -q https://registry.hub.docker.com/v1/repositories/${1}/tags -O - | sed -e 's/[][]//g' -e 's/"//g' -e 's/ //g' | tr '}' '\n' | awk -F: '{print $3}'` ; if [ -n "$2" ] ; then tags=` echo "${tags}" | grep "$2" ` ; fi ; echo "${tags}"} +alias pip='pip3' +alias python='python3' +alias usbb="usbguard list-devices -b" +alias usba="usbguard allow-device"