Search results for query: .shrc

  1. kerogaz

    Script don't works

    Thanks, but I don't need such details, I want to know how to run the script. It won't even run, not just any script #!/bin/sh
  2. SirDice

    Script don't works

    ...works but the shell can be started in 4 different ways. And each way behaves a little differently regarding /etc/profile, ~/.profile and ~/.shrc (or wherever ENV is pointing to). Invocation If no arguments are present and if the standard input of the shell is connected to a...
  3. kerogaz

    Script don't works

    ...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...
  4. hakova

    Solved Where to define an alias for root

    Just for future reference, one can also define the alias in the user's .shrc file, who connects to the host via ssh. They can then elevate privilages with su instead of su - if typing two more characters is a big deal 😄.
  5. hakova

    Solved Where to define an alias for root

    I apologize for the simplicity of this question, the answer to which is probably going to be as simple. I made an entry in /root/.shrc for an alias like la='ls -alh'. Once I source this file, it does work. However, I have to source this file every time I su to root via ssh. I need this alias to...
  6. kerogaz

    problems with the fastfetch output?

    I connect via SSH from a FreeBSD 14.3 computer from the command line. I don't have a graphical environment. But on all other computers with other OS (Manjaro, Mint, MX etc) the prompt line is normal, that's the problem Connect to computer with Manjaro: ssh pal@10.44.44.44 The authenticity of...
  7. R

    problems with the fastfetch output?

    ...In your case, the parameters are "=5", which also makes no sense. My hunch: Whatever program configures your prompt on whatever version of Linux (CachyOS?) is using unsupported escape sequences. Look at where your prompt is set, typically .profile or .bashrc or .shrc or something like that.
  8. A

    Helpful readings to clarify issues? ssh/gpg agent in login shell vs XFCE terminal

    ...appropropriate contents. I would like to know more about the dynamics behind these different behaviours. I tried to have more or less equal .shrc,.bashrc, .profile and .login files. I'm sure this has something to do with environment variables but if someone asked me I could not say why...
  9. M

    Remote VS Code into FreeBSD 14.3-Release fails

    ...1 rpt rpt 966 Jul 12 20:26 .profile -rw------- 1 rpt rpt 236 Jul 16 13:00 .sh_history -rw-r--r-- 1 rpt rpt 1003 Jul 12 20:26 .shrc drwxr-x--- 5 rpt rpt 7 Jul 16 16:57 .vscode-server First VS CODE attempt after rebooting root@repeater:~ # tail -f /var/log/auth.log Jul 16...
  10. H

    Command line editing issue

    ...The changes that I made: # cat .editrc history size 2096 history unique 1 # cat .profile ... export TERM=${TERM:-xterm} export ENV=/root/.shrc # cat .shrc ... set -o emacs bind ^[[A ed-search-prev-history bind ^[[B ed-search-next-history bind ^[[5C em-next-word bind ^[[5D ed-prev-word...
  11. dbdemon

    During freebsd-update to 14.3-R: Timeout, server $VPS_IP_ADDRESS not responding

    Thank you! I guess most of the files listed are ones I've edited, so I think it looks mostly OK? Maybe except /usr/lib/libncursesw_real.a ... No ZFS, unfortunately.
  12. H

    Command line editing issue

    I use emacs editing mode: # cat .shrc # # .shrc - bourne shell startup file # set -o emacs The effect is repeated on the FreeBSD console, where TERM=xterm, and when connecting via ssh, TERM=st-256color. I set TERM=xterm, but nothing changed.
  13. fff2024g

    Solved question bout awesome GUI configuration in freebsd14.2 ?

    solved : add below content in your .shrc file . #custom define chinese input mothed export XIM=ibus export GTK_IM_MODULE=ibus export QT_IM_MODULE=ibus export XMODIFIERS=@im=ibus export XIM_PROGRAM="ibus-daemon" export XIM_ARGS="--daemonize --xim"
  14. fff2024g

    Solved vt color

    Dear VladiBG : thanks for your guide . how to configure my VT cursor to lightgreen ? thanks. i have read this content , but i can't find it . and try add below line in my .shrc cursor_foreground_green=8 i am not sure is that right . please help me . thanks.
  15. fff2024g

    Solved question about ibus chinese input in libreoffice at awesome of freebsd14.2 ?

    ...export XIM_ARGS="--daemonize --xim" 2....way: this is best way fellow ibus guide.. $echo $SHELL sh NOte: sh shell configure was ~/.shrc ...it's not .cshrc .. $ pkg info -D ibus ibus-1.5.31_1:On install: ibus installation finished. To use ibus, please do the following: If you are using...
  16. freethread

    Is there any wisdom re: order of things to install ?

    ...located in /usr/local/SYSENV/etc/shells/common.tcshrc do the same for sh shell creating a symlink of file /usr/local/SYSENV/etc/shells/common.shrc in /etc/profile.d. The script also initialize pkg (bootstrap) and set the package repository to latest, install git from packages, create the...
  17. SamuelMarks

    Shell How do I set global env vars? - Tried: /etc/profile /usr/share/skel/dot.profile $HOME/.shrc

    FWIW in Linux I use `/etc/environment`. I have this line that I have appended to all three of /etc/profile /usr/share/skel/dot.profile $HOME/.shrc: export FOO='bar' And using a Vagrant box of FreeBSD 14 I can see `FOO` in `env` or just by: $ vagrant ssh $ printf 'FOO = "%s"\n' "${FOO}" FOO...
  18. meine

    Solved Attempting to run cwm on FreeBSD

    There are several ways to start the graphical environment after login at the first prompt or through a session manager: https://forums.freebsd.org/threads/calling-startx-in-shrc-freebsd-11-1.64866/ https://forums.freebsd.org/threads/start-x-at-login.90260/ A 'wadnows-bossbox' is known...
  19. johnjohn

    Solved FreeBSD packages and porting

    ...to newbies that struggle to bond with vi. I appreciate you very much. You have taught me alot in just a few posts. I somehow forgot about .shrc and .profile in the ocean of information that i've been absorbing lately. I use the defaul sh shell (Bourne shell, i think it is called.) I am happy...
  20. SirDice

    Solved FreeBSD packages and porting

    Another tip regarding the editor, edit ~/.shrc and/or ~/.cshrc (depends on the shell you're using) and set the EDITOR variable to ee. Commands like visudo, vipw and many more respect the EDITOR environment variable and will open with that editor instead of the default vi.
Back
Top