Search results for query: .shrc

  1. SirDice

    Solved adding a user to the system

    ...1 2023 dot.login -rw-r--r-- 1 root wheel 79 Dec 1 2023 dot.login_conf -rw------- 1 root wheel 289 Dec 1 2023 dot.mail_aliases -rw-r--r-- 1 root wheel 255 Dec 1 2023 dot.mailrc -rw-r--r-- 1 root wheel 966 Dec 1 2023 dot.profile -rw-r--r-- 1 root wheel 1003 Dec 1 2023 dot.shrc
  2. bagas

    Solved adding a user to the system

    Hello. When adding a user to the system, system files were not created (.cshrc,.history,.login,.login_conf,.mail_aliases,.mailrc,.shrc ....) How can I create these system files for the added user?
  3. johnjohn

    FreeBSD or Linux from Windows

    Snail I have Mint and i like it very much. I want to keep it and run a dualboot with FreeBSD. Mint is fantastic for a Linux machine. I really like the cinnamon DE but some will say that it is because i am a windows user :) Your post was a very nice read. I enjoyed your contribution to the...
  4. astyle

    FreeBSD or Linux from Windows

    UNIX command line doesn't use dir. There's a few ways to create a command alias, though ;), like via .shrc, .login, or even via a symlink. Or you can write a Perl/Python/ruby script that lets you use Windows commands in a UNIX shell - I do remember seeing such an exercise in one of my Computer...
  5. T

    Your favorite shell in FreeBSD

    For fresh installation or newly created user, yes. But existing user from before upgrade, no. This commit has the needed change. Applying the diff (with patch or manually editing each user's ~/.shrc) would help.
  6. nxjoseph@

    Your favorite shell in FreeBSD

    ...terminal output with script. I think I am seeing color codes in the typescript too, to workaround this, for now i have switched to /bin/sh and configured all my /bin/tcsh settings in both ~/.shrc and ~/.profile. I wonder if i can use tput to color my shell prompt without messing the typescript.
  7. nxjoseph@

    Solved Root shell doesn't get environmental variables from .profile

    ...export BUNDLE_PATH GOPATH="/home/yusuf/.go"; export GOPATH LANG="en_US.UTF-8"; export LANG LC_ALL="en_US.UTF-8"; export LC_ALL BLOCKSIZE="G"; export BLOCKSIZE # set ENV to a file invoked each time sh is started for interactive use. ENV=$HOME/.shrc; export ENV
  8. E

    Shell Save command history in sh terminal

    ...(credit to chrbr). Schroter, you can fix these issues as follows: Delete/rename your ~/.sh_history directory; Remove last 4 lines from your ~/.profile; If you need more than 100 history items, add HISTSIZE=1000 to the ~/.shrc; Try to close the shell gracefully (e. g. press Ctrl-D or type exit).
  9. gotnull

    Shell Save command history in sh terminal

    Try to put these commands in ~/.shrc instead of ~/.profile, I am not sure that ~/.profile is meant for that.
  10. E

    Shell Save command history in sh terminal

    Ah, as SirDice mentioned, I missed the alias from the default ~/.shrc. Nevertheless, the OP's config is clearly wrong, as fc doesn't have appending/reading functionality similar to history -a|-r in bash. Furthermore, the whole history capability in sh should work without any additional...
  11. SirDice

    Shell Save command history in sh terminal

    The 'history' command is an alias set in ~/.shrc. alias history='fc -l'
  12. S

    Shell Save command history in sh terminal

    ...export EDITOR PAGER=less; export PAGER # set ENV to a file invoked each time sh is started for interactive use. ENV=$HOME/.shrc; export ENV # Let sh(1) know it's at home, despite /home being a symlink. if [ "$PWD" != "$HOME" ] && [ "$PWD" -ef "$HOME" ] ; then cd ; fi # Query terminal...
  13. T

    ZFS Can't access zfs snapshot

    ...AVAIL REFER MOUNTPOINT zroot/home/john@sn1 0B - 412K - # zfs list -o name,mountpoint NAME MOUNTPOINT zroot/home/john /home/john # ls /home/john/.zfs/snapshot/sn1 .cshrc .login_conf .mailrc .shrc .login .mail_aliases...
  14. M

    Invalid locale

    In ~/profile it reads: and in ~/.shrc it reads So I dont think so... ? But maybe it should be?
  15. bsduck

    Invalid locale

    Do you have any locale settings in ~/.profile or ~/.shrc ?
  16. cucurella

    Midnight Commander - exit in current directory

    1- Change shell: pw usermod root -s /bin/sh 2- Add this to /root/.shrc: alias mcedit='mcedit -u' alias mc='. /usr/local/libexec/mc/mc-wrapper.sh' 3- Content of file /usr/local/libexec/mc/mc-wrapper.sh: MC_USER=`whoami` rnd=$(openssl rand -base64 6) MC_PWD_FILE="/tmp/mc-${MC_USER}-${rnd}"...
  17. fff2024g

    Solved how to enable SSH X11 forwarding in freebsd14.2 ?

    ...LANG=C.UTF-8 MAIL=/var/mail/game PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/home/game/bin EDITOR=vi ENV=/home/game/.shrc DISPLAY=localhost:10.0 PWD=/home/game TERM=xterm-256color SSH_TTY=/dev/pts/0 HOME=/home/game USER=game SSH_CONNECTION=192.168.200.3 28823...
  18. wb7odyfred

    Solved how to enable SSH X11 forwarding in freebsd14.2 ?

    ...LANG=en_US.UTF-8 MAIL=/var/mail/fred PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/home/fred/bin EDITOR=vi ENV=/home/fred/.shrc PWD=/home/fred TERM=linux SSH_TTY=/dev/pts/0 HOME=/home/fred USER=fred SSH_CONNECTION=173.11.5.249 53678 10.0.0.159 22 CHARSET=UTF-8...
  19. wolffnx

    Solved how to change the prompt in root shell

    Yes an yes .. ENV=$HOME/.shrc; export ENV at the begining of .xinitrc do the trick
  20. wolffnx

    Solved how to change the prompt in root shell

    ...export EDITOR PAGER=less; export PAGER # set ENV to a file invoked each time sh is started for interactive use. ENV=$HOME/.shrc; export ENV # Let sh(1) know it's at home, despite /home being a symlink. if [ "$PWD" != "$HOME" ] && [ "$PWD" -ef "$HOME" ] ; then cd ; fi # Query terminal...
Back
Top