diff options
| author | Thorsten Töpper <atsutane@freethoughts.de> | 2022-02-03 12:41:37 +0100 |
|---|---|---|
| committer | Thorsten Töpper <atsutane@freethoughts.de> | 2022-02-03 12:41:37 +0100 |
| commit | b10cacff0b9381c2ca1fa27644341d56171bc1ff (patch) | |
| tree | 94dd602fea63baa86700aeb2a8ea60f152566ade /zshrc | |
| parent | fd6c52cf7c8d2077dd2ff158e55b11c8218aaaff (diff) | |
| download | dotfiles-b10cacff0b9381c2ca1fa27644341d56171bc1ff.tar.gz dotfiles-b10cacff0b9381c2ca1fa27644341d56171bc1ff.tar.bz2 | |
zshrc: Remove OOD getinet function.
Diffstat (limited to 'zshrc')
| -rw-r--r-- | zshrc | 9 |
1 files changed, 1 insertions, 8 deletions
@@ -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" |
