Search results for query: .shrc

  1. ZioMario

    zsh: unmatched / seg fault trying to launch obs with nv-sglrun.

    ...EDITOR=vi XDG_SESSION_TYPE=wayland XDG_RUNTIME_DIR=/var/run/user/1001 ENV=/home/marietto/.shrc LESSHISTFILE=/home/marietto/.config/less/history _JAVA_AWT_WM_NONREPARENTING=1 DISPLAY=:0 OLDPWD=/home/marietto SSH_AUTH_SOCK=/var/run/user/1001_/ssh-agent.socket PWD=/home/marietto...
  2. gotnull

    share your shell configuration script

    There are already good and very informative threads on that subject: share-your-zshrc-file share-your-shrc-kshrc-or-mkshrc-file-segments-bourne-or-korn-shell share-your-tcshrc-file Please do not divide the force :)
  3. zirias@

    Your favorite shell in FreeBSD

    sh for scripting, shells/bosh for portability testing and shells/zsh for interactive use. Interested in POSIX compliance in general and comfortable features for interactive use. Close to none, I use premade things like oh-my-zsh or spaceship-prompt, depending on the needs. I waited for that a...
  4. D

    Your favorite shell in FreeBSD

    ...opportunities are you most interested in? How many lines does your shell configuration take? This question is because I saw monstrously complex .shrc in someone's dotfiles on github. Does anyone use csh in FreeBSD 14 for a non-privileged user or even for root (which is contrary to the...
  5. I

    Ram usage in %

    Yes, it completely filled up a few times, including the swap, which I would like to follow up on. I'm not very good at that. I'm happy if I can keep my systems up to date via the shell and get the basics down. It can be. But should it still be done in milliseconds? The command is executed...
  6. R

    Ram usage in %

    ...would try to solve it differently. For example by creating a little script that can be called in one line, or putting a shell function in your .shrc etc. file. C: Your solutions, while theoretically workable, all seen brittle. The very first one (where you build a bc expression out of...
  7. T

    Local login hangs, but SSH succeeds

    Ah ha, thank for you clearing that up. Since even a newly created testuser has the same problem, the issue must be something in /etc/profile or /etc/profile.d I'm guessing, rather than something in a user's homedir. Since the problem is common to all users, even newly created ones. This gives...
  8. R

    Local login hangs, but SSH succeeds

    ...automatically. Those include /etc/profile, all files in /etc/profile.d, the same in /usr/local/etc, and usually things like .profile and .shrc in the user's home directory. Those files could easily contain something that hangs when running locally. My advice would be to go in and disable all...
  9. Cath O'Deray

    Solved PkgBase

    ...root@mowa219-gjp4-zbook-freebsd:~ # pwd /root root@mowa219-gjp4-zbook-freebsd:~ # find . -name "*.pkgsave" -print ./.cshrc.pkgsave ./.shrc.pkgsave ./.profile.pkgsave root@mowa219-gjp4-zbook-freebsd:~ # Discussing at {link removed} with a view to updating the wiki. Attached: notes from an...
  10. D

    Solved Lost GUI and SSH on upgrading to 13.2 - advice on how you would proceed

    ...any advice you may have. For example, try and get SSH working, the desktop working? Try and figure out why these are not working to begin with? .shrc problems? I love the box, but I am not under the hood with it much. I have a backup of the original os disk prior to the upgrade, but not sure...
  11. gotnull

    Shell Bourne SH Customization and Completion

    Yes it possible by using the source command . from the man page sh(1) For example you can insert a line at the beginning of your shrc file: . ~/my_config_file I don't need to do that for sh because my config file is not that big, but for other shells like zsh or whatever it is useful.
  12. B

    Shell Bourne SH Customization and Completion

    Is it possible to '-include' some code in .shrc? ie read some configurations from an independent file?
  13. W

    Shell Bourne SH Customization and Completion

    The 3 letter requirement should be documented in the comment in the .shrc Trying the history feature with ls commands I thought it doesn't work.
  14. Cath O'Deray

    .shrc .cshrc .profile

    % head -n 3 /etc/csh.cshrc # # System-wide .cshrc file for csh(1). % % head -n 3 /etc/profile # # System-wide .profile file for sh(1). # %
  15. B

    .shrc .cshrc .profile

    Can someone point me to a reference about the purpose of each of these scripts and how they relate? I note that there is no .shrc in /, and wonder why not. I would like to change PAGER to sysutils/most, a program I've only just discovered, and am not sure of the correct place to make this...
  16. Cath O'Deray

    Solved Why are my Aliases not Accepted? [CSH and SH]

    Re: the absence of ~/.shrc from <https://man.freebsd.org/cgi/man.cgi?query=sh&sektion=1&manpath=freebsd-release#FILES>, this might help (an answer from Jonathan de Boyne Pollard): https://unix.stackexchange.com/a/747390/13260
  17. Cath O'Deray

    Solved Why are my Aliases not Accepted? [CSH and SH]

    ...sense to me. % $EDITOR /tmp/nonsense % sh $ echo $EDITOR /usr/local/bin/nano $ . /tmp/nonsense $ echo $EDITOR /usr/cloud/microsoftword $ . ~/.shrc $ echo $EDITOR /usr/cloud/microsoftword $ . ~/.profile To read a compressed file without having to first uncompress it, use "zcat" or "zless" to...
  18. R

    Solved Why are my Aliases not Accepted? [CSH and SH]

    ...the effects of settings is another mistake that beginners make all the time (and experienced users make occasionally): Say you have changed .shrc to add the "elephant" option as default to ls, by defining "alias ls = ls --elephant" (it causes elephants to fly around the screen whenever you...
  19. SirDice

    Solved Why are my Aliases not Accepted? [CSH and SH]

    Right, sh doesn't seem to have it, bash does. You can use a . (dot) instead; . ~/.shrc (note the space between the dot and the filename). Yes. You're entering sh commands in the C shell, that obviously doesn't work. The ~/.shrc is specific for sh. "Sourcing" a script is the same as entering...
  20. S

    Solved Why are my Aliases not Accepted? [CSH and SH]

    ...I could not run source in the bourne shell but could in the cshell. However, quite logically, the cshell threw back a few errors when I tried to apply it to .shrc. EDIT: This worked: In csh: use source as in: source ~/.cshrc In sh: use . as in: . ~/.shrc Thank you and kindly yours...
Back
Top