From b10cacff0b9381c2ca1fa27644341d56171bc1ff Mon Sep 17 00:00:00 2001 From: Thorsten Töpper Date: Thu, 3 Feb 2022 12:41:37 +0100 Subject: zshrc: Remove OOD getinet function. --- zshrc | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'zshrc') diff --git a/zshrc b/zshrc index 66bc258..9f3ccbc 100644 --- a/zshrc +++ b/zshrc @@ -19,18 +19,11 @@ alias scr='screen -x || screen' alias cscope='cscope -R' alias ltr='ls -ltr --color' + alias aurclone () { git clone "https://aur.archlinux.org/${1}.git" } -function getinet () { - if [ $(ifconfig wlan0 | grep "inet addr:" | cut -d ":" -f 2 | cut -d " " -f1) ]; then - echo "$(ifconfig wlan0 | grep "inet addr:" | cut -d ":" -f 2 | cut -d " " -f1) @wlan0" - fi - if [ $(ifconfig eth0 | grep "inet addr:" | cut -d ":" -f 2 | cut -d " " -f1) ]; then - echo "$(ifconfig eth0 | grep "inet addr:" | cut -d ":" -f 2 | cut -d " " -f1) @eth0" - fi -} function parse_git_branch() { print "%{\e[1;34m%}$(git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/')%{\e[0m%}\n" -- cgit v1.2.3-70-g09d2