You are not logged in.

#1 2011-08-10 22:46:38

InfinityDweller
Member
Registered: 2011-08-10
Posts: 9

ZSH & hostname issues

whenever I open zsh, I get this error message:

/home/InfinityDweller/.oh-my-zsh/lib/completion.zsh:37: command not found: hostname

I have no clue why it can't find hostname info...

My first thought was rc.conf and hosts

# HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
#
HOSTNAME="Quasar"


#<ip-address>   <hostname.domain.org>   <hostname>
127.0.0.1       localhost.localdomain   localhost Quasar
::1             localhost.localdomain   localhost

any help at all would be appreciated!

Last edited by InfinityDweller (2011-08-10 22:46:51)

Offline

#2 2011-08-10 23:17:14

oliver
Member
Registered: 2007-12-12
Posts: 448

Re: ZSH & hostname issues

hostname is also a binary in /bin (it's part of net-tools).  Not sure why it can't find it, but hopefully this gives you something to go on

I would guess that the script that errors out has it hard-coded to something else like /usr/bin/hostname or /usr/local/bin/hostname... take a look at line 37

Last edited by oliver (2011-08-10 23:18:15)

Offline

#3 2011-08-10 23:19:31

InfinityDweller
Member
Registered: 2011-08-10
Posts: 9

Re: ZSH & hostname issues

ummm... Awesome!
thanks very much!
I re-installed net-tools, now no problem!

Offline

#4 2011-08-11 11:43:55

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: ZSH & hostname issues

InfinityDweller, if you've solved your problem, please mark the thread as solved.

BTW, when pasting code, please use [ code ] tags https://bbs.archlinux.org/help.php#bbcode

like this

It makes the code more readable and more convenient to scroll through.

Offline

#5 2011-10-08 07:31:05

kfl62
Member
From: Luna de Sus, Cluj, Romania
Registered: 2011-10-03
Posts: 11

Re: ZSH & hostname issues

Warning: hostname utility moved from net-tools to inetutils . Now to avoid strange behavior in zsh, must:

pacman -Syu inetutils 

Last edited by kfl62 (2011-10-08 07:36:19)

Offline

#6 2011-10-08 13:11:13

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: ZSH & hostname issues

kfl62 wrote:

Warning: hostname utility moved from net-tools to inetutils . Now to avoid strange behavior in zsh, must:

pacman -Syu inetutils 

Oh come on, it's in the news, are we going to "update" every thread about net-tools, zsh, xorg-server etc.? Arch is a rolling release, things change every day - just because it worked yesterday doesn't mean it will still work today.

Offline

Board footer

Powered by FluxBB