From c5534762edbdfad60b30acaec78f61da5c73081c Mon Sep 17 00:00:00 2001 From: histalek Date: Sun, 23 May 2021 10:23:44 +0200 Subject: [PATCH] Add firefox alias, add activeHosts function --- .config/oh-my-zsh/aliases.zsh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.config/oh-my-zsh/aliases.zsh b/.config/oh-my-zsh/aliases.zsh index 38afdc8..6282826 100644 --- a/.config/oh-my-zsh/aliases.zsh +++ b/.config/oh-my-zsh/aliases.zsh @@ -53,3 +53,11 @@ function psgrep { ps axuf | grep -v grep | grep "$@" -i --color=auto; } +## check active hosts on subnet +function getActiveHosts { + nmap -sP $(ip route | awk '/src/ {print $1}'); +} + +## always spawn new window for firefox +alias firefox='firefox --new-window' +