|
Author: dg
Date: 18-02-01 19:13
Hi there again,
When I have installed something off the ports, lets say cvsup, i try just to use the command 'cvsup' and it says command not found so I just do /usr/local/bin/cvsup -whatever..
But when i reboot the system responds to the command to 'cvsup' and I dont have to use the long file path, is there a way to update some sort of database that controls this, I dont really want to be rebooting after everything I have installed.
Thanks alot..
dg
|
|
Reply To This Message
|
|
Author: dg
Date: 18-02-01 21:54
er.. that doesnt really help =\
i've just started off with freebsd so you might need to add some detail to that.
isnt there a command that just updates the damn thing ?
|
|
Reply To This Message
|
|
Author: Dan Langille
Date: 19-02-01 02:06
it depends on what shell you are using.
Here's my ~/.bash_profile:
# more ~/.bash_profile
# $Id: dot.profile,v 1.7.2.5 1998/06/30 14:38:05 kuriyama Exp $
#
# .profile - Bourne Shell startup script for login shells
#
# see also sh(1), environ(7).
#
# remove /usr/games or /usr/X11R6/bin if you want
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/bin:/usr /X11R6/bin:$HOME/bin; export PATH
# Setting TERM is normally done through /etc/ttys. Do only override
# if you're sure that you'll never log in via telnet or xterm or a
# serial line.
# Use cons25l1 for iso-* fonts
# TERM=cons25; export TERM
BLOCKSIZE=K; export BLOCKSIZE
EDITOR=ee; export EDITOR
PAGER=more; export PAGER
# make mail(1) happy:
crt=24; export crt
# set ENV to a file invoked each time sh is started for interactive use.
ENV=$HOME/.shrc; export ENV
# set prompt: ``username@hostname/directory $ ''
PS1="[\u@\h:\w] "
case `id -u` in
0) PS1="${PS1}# ";;
*) PS1="${PS1}$ ";;
esac
[ -x /usr/games/fortune ] && /usr/games/fortune
|
|
Reply To This Message
|
|
Author: dg
Date: 19-02-01 16:55
Thanks alot Dan for the help!
worked out in the end it was the shell I was using, it was set to the default, csh or something, but now its on bash and everything is fine *phew*
thanks for the help again, you guys are great.
dg
|
|
Reply To This Message
|
|