Search results for query: .shrc

  1. blind0ne

    Shell How to change EDITOR to default parameter

    I've already changed it in .profile where editor was vi, by default. But Just want to answer on questions why I don't see it on 'echo $EDITOR',
  2. blind0ne

    Shell How to change EDITOR to default parameter

    # cat .shrc # $FreeBSD$ # # .shrc - bourne shell startup file # # This file will be used if the shell is invoked for interactive use and # the environment variable ENV is set to this file. # # see also sh(1), environ(7). # # file permissions: rwxr-xr-x # # umask 022 # Uncomment this to enable...
  3. E

    Shell How to change EDITOR to default parameter

    What output do you get from: $ cat ~/.shrc | grep EDITOR
  4. blind0ne

    Shell How to change EDITOR to default parameter

    But, I'm still wondering why I can't see the value of the EDITOR by typing echo $EDITOR in sh terminal. Is it iside some othe variable?
  5. blind0ne

    Shell How to change EDITOR to default parameter

    The EDITOR=vi was in .profile.
  6. SirDice

    Shell How to change EDITOR to default parameter

    ...user can set the ENV variable to some file by placing the following line in the file .profile in the home directory, substituting for .shrc the filename desired: ENV=$HOME/.shrc; export ENV The first non-option argument specified on the command line will be...
  7. blind0ne

    Shell How to change EDITOR to default parameter

    ...TERM=${TERM:-xterm} export TERM PAGER=less export PAGER # set ENV to a file invoked each time sh is started for interactive use. ENV=$HOME/.shrc; export ENV # Query terminal size; useful for serial lines. if [ -x /usr/bin/resizewin ] ; then /usr/bin/resizewin -z ; fi # Uncomment to display...
  8. K

    Other Display Manager

    +1 for this. A colleague of mine does similar but goes a step further. He also has his command line automatically log in by tweaking /etc/gettytab and /etc/ttys. This in turn automatically exec's startx from his profile script. Finally his .xinitrc starts WM and xlock. He has basically turned...
  9. Minbari

    Other Display Manager

    Login as text and then automatically startx by .(z)shrc.
  10. Vull

    [sh] PS1 setting problem

    For /bin/sh shell users only: Starting with FreeBSD version 13.0, you must modify ~/.shrc because ~/.profile contains these lines:# set ENV to a file invoked each time sh is started for interactive use. ENV=$HOME/.shrc; export ENV ... and ~/.shrc contains these lines:# set prompt...
  11. Vull

    Solved [HELP] Running commands after login (Fish Shell)

    By default, sh also runs ~/.shrc after running ~/.profile. This became particularly noteworthy to me starting with FreeBSD version 13, because, unlike in previous versions, the default version of ~/.shrc now resets the PS1 prompt. Therefore, if one wants to modify the PS1 prompt in sh, one must...
  12. Vull

    Current proposal to make /bin/sh the default shell for root

    ...scripts that will run with root privileges, or to preserve my present working directory, or to use environment variables I've exported in ~/.shrc. Otherwise su - will usually suffice. I've noticed at least one working difference between bash and sh. With bash, I can use leng=$(expr length...
  13. SirDice

    Some general observations on FreeBSD from a rookie coming from Linux

    ...user can set the ENV variable to some file by placing the following line in the file .profile in the home directory, substituting for .shrc the filename desired: ENV=$HOME/.shrc; export ENV The first non-option argument specified on the command line will be...
  14. S

    right way to set PATH for startup scripts

    Hi thanks, In normal user mode; echo $SHELL gives me: /bin/tcsh. In root user mode; echo $SHELL gives me: /bin/csh. I deliberately changed shell to tcsh during FreeBSD 13 installation. Since, I was told it is better than other shells. Thanks & Best Regards Schroter
  15. eternal_noob

    right way to set PATH for startup scripts

    Are you sure that you're using tcsh? What's the output of echo $SHELL? If it's /bin/sh, you're supposed to add pathes in .shrc If you want to change the shell of your normal user, see https://docs.freebsd.org/en/books/handbook/basics/#changing-shells
  16. Vull

    Command only found with -su

    ...user, the other for general user? How can I change that?" You can't. Super user is using /root/.cshrc and general user is using /home/leon/.shrc. PATH is set in /etc/login.conf as outlined above by T-Daemon, but can be overridden in .cshrc for csch shells, or in .shrc for sh shells. Normally...
  17. RogellParadox

    Command only found with -su

    ...$PATH /sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin I noticed there's this /usr/games path and as far as I looked for, didn't find it in any of those config files (~/.profile, ~/.shrc, ~/.cshrc, .login_conf), what makes me think there could be probably another conf...
  18. RogellParadox

    Command only found with -su

    I don't see any of those paths in /.shrc # $FreeBSD$ # # .shrc - bourne shell startup file # # This file will be used if the shell is invoked for interactive use and # the environment variable ENV is set to this file. # # see also sh(1), environ(7). # # file permissions: rwxr-xr-x # # umask...
  19. SirDice

    Command only found with -su

    Path is set in .shrc (for sh) or .cshrc for tcsh (root's shell is csh). Your user's shell is set to sh.
Back
Top