sorry if I'm asking something that might look obvious - what shell are you running on? You might need to look at ~/.shrc or /etc/profile for env variables being set.
EDIT: probably should add /etc/csh.* files, since you pointed at csh as well.
Apply the environment variable from ~/.profile:
# set ENV to a file invoked each time sh is started for interactive use.
ENV=$HOME/.shrc; export ENV
in ~/.xinitrc (shorter form):
export ENV=$HOME/.shrc
~/.xinitrc is executed by slim after a successful login:
/usr/local/etc/slim.conf
# This...
If I recall Slim doesn't source the user's profile script correctly.
In your .xsession file, just add the . .shrc
Slim does a lot of things wrong. You might need to modify the .xinitrc file rather than .xsession since I have a suspicion it uses that instead.
...$, but if I use Slim to login the prompt in the terminal emulators only displays $ no matter what folder I am, if I source the shell . .shrc it fixes this, but when I close the terminal and open it again it's back to only $.
Is there a way I can fix this, and login through Slim and have a...
If you don't mind having separate scripts for each individual user, modify ~/.bashrc for bash shells (or ~./shrc for sh shells, where:
~ is shorthand for the user's HOME directory.
...all work automatically in the future:
a. Enter cd; pwd to verify that your present working directory is your home directory:cd; pwd
b. Enter vi .shrc (or vi .bashrc) to edit your profile file:vi .shrc
c. Press G to position the cursor on the last line of the profile:G
d. Press o to enter...
...* don't create wlan0 at boot, so I removed wlans_iwn0="wlan0" from /etc/rc.conf
* aliases to easily enable and disable the WLAN interface:
~/.shrc
alias wlan-on='sudo ifconfig wlan0 create wlandev iwn0 && sudo service netif restart'
alias wlan-off='sudo ifconfig wlan0 destroy && sudo...
...sh and csh shells: https://klarasystems.com/articles/interacting-with-freebsd-learning-the-fundamentals-of-the-freebsd-shell-2/
A sample from there of .shrc for history completion for Bourne shell:
bind ^[[A ed-search-prev-history
According to this article, this is relevant to .editrc too...
Hello,
It works only for csh which root is using. but for bourne shell I've customized my prompt in .shrc
PS1="\u@\h[\w] % "
alias ls='ls -FG'
the output is:
...ksh, mksh and zsh take after a lot of sh configurations. The ones that would be so different, they wouldn't be relevant are CSH and Bash.
In .shrc, the following an be tried:
PS1=$'\E[1m\E[32m$PWD \E[0m$ '
That's for mksh, and there's a similar one for ksh. It may need a reboot or something...
...xterm onifexists secure
This will get you a root autologged on the specified tty. Then add something like the following to root's .shrc:
[ "$(tty)" = "/dev/ttyv7" ] && exec top -s1
exec makes (somewhat) sure that you can't really exit from the program running, or rather, when the...
Intended for sharing Bourne and Korn shell configurations: share-your-shrc-kshrc-or-mkshrc-file-segments-bourne-or-korn-shell.85467. I had mksh in mind when referring to ksh on this thread. mksh is a little more user friendly and a little more advanced than ksh. Mksh is easier to set up than...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.