Search results for query: .shrc

  1. Snork

    Czech keyboard issues

    I'm currently using the csh shell.
  2. C

    Czech keyboard issues

    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.
  3. l3ullseye

    Solved Problem to display proper prompt in a terminal with sh

    Applying the environment variable in .xinitrc, it's working, thanks!
  4. T

    Solved Problem to display proper prompt in a terminal with sh

    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...
  5. l3ullseye

    Solved Problem to display proper prompt in a terminal with sh

    I don't have a .xsession so I added to .xinitrc before exec openbox-session, still the same
  6. K

    Solved Problem to display proper prompt in a terminal with sh

    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.
  7. l3ullseye

    Solved Problem to display proper prompt in a terminal with sh

    ...$, 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...
  8. sudobsd

    Solved Font very small on screen

    Nope still not, here is my ./profile file
  9. Vull

    Shell Run script on user logon

    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.
  10. rsronin

    is "vi" worth learning in 2022?

    I am using aliases instead:
  11. Vull

    is "vi" worth learning in 2022?

    ...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...
  12. bsduck

    Solved Setting up WLAN ready to connect without connecting at boot

    ...* 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...
  13. S

    Shell Share your .shrc, .kshrc or .mkshrc file segments: Bourne or Korn shell

    ...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...
  14. amr

    Shell The bourne shell prompt color

    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:
  15. S

    Shell The bourne shell prompt color

    ...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...
  16. amr

    Shell The bourne shell prompt color

    I am using bourne shell, and I wonder how to color the shell prompt.
  17. Y

    How to start tshark on ttyv1 and ttyv2 on boot

    ...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...
  18. ZioMario

    firefox is not unix, it is something horrible

    Which kind of cool projects can I do today if I learn ALGOL68 ?
  19. astyle

    firefox is not unix, it is something horrible

    Seriously??? that stuff still lives on in $HOME/.shrc and $HOME/.login... ?
  20. S

    Colorize your BSD shell

    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...
Back
Top