aboutsummaryrefslogtreecommitdiff
path: root/zshrc
diff options
context:
space:
mode:
authorThorsten Töpper <atsutane@freethoughts.de>2022-02-03 12:41:37 +0100
committerThorsten Töpper <atsutane@freethoughts.de>2022-02-03 12:41:37 +0100
commitb10cacff0b9381c2ca1fa27644341d56171bc1ff (patch)
tree94dd602fea63baa86700aeb2a8ea60f152566ade /zshrc
parentfd6c52cf7c8d2077dd2ff158e55b11c8218aaaff (diff)
downloaddotfiles-b10cacff0b9381c2ca1fa27644341d56171bc1ff.tar.gz
dotfiles-b10cacff0b9381c2ca1fa27644341d56171bc1ff.tar.bz2
zshrc: Remove OOD getinet function.
Diffstat (limited to 'zshrc')
-rw-r--r--zshrc9
1 files changed, 1 insertions, 8 deletions
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"