aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"