aboutsummaryrefslogtreecommitdiff
path: root/etc/bash (unfollow)
Commit message (Collapse)AuthorFilesLines
2022-08-12etc/{bash => sh}/rc: Separate Bash-specific code, remove unused codeEuAndreh1-341/+0
2022-08-12mv etc/bash/check.sh etc/sh/check.shEuAndreh1-74/+0
2022-08-12mv etc/bash/privrc.sh etc/sh/privrc.shEuAndreh1-1/+0
2022-08-12etc/{bash => sh}/vcs-ps1.sh: Add shell_status_jobs and shell_status_levelEuAndreh1-171/+0
2022-05-16etc/bash/rc: Use "-e" instead of "-r" before sourcing filesEuAndreh1-2/+2
I previously had the impression that "-r" tested for a "readable file", when it actually works on directories too. So I'm sticking to the more general "-e" instead.
2022-05-16etc/bash/rc: explicitly set $HISTSIZE to -1 to represent the infinite valueEuAndreh1-1/+1
2022-05-16etc/bash/rc: manually load $XDG_CONFIG_HOME/guix/current/etc/profileEuAndreh1-1/+5
Guix sources the hardcoded ~/.config/guix/current in /etc/profile, so my custom path needs to be loaded manually.
2022-05-16etc/bash/rc: Don't source /etc/bashrc from user fileEuAndreh1-3/+0
Let this file be soruced by /etc/* files, or not be sourced at all.
2022-05-16etc/bash/vcs-ps1.sh: Better checking of empty shell variablesEuAndreh1-2/+2
2022-05-15Use TinyCC as the default value of $CCEuAndreh1-1/+1
2022-05-15etc/bash/rc: Remove FIXME marker from bash-completion handlingEuAndreh1-6/+9
Moved to help-guix@gnu.org. See <165265271797.19845.1907620860408175547@localhost>. Also, only load completion files when running interactively, as there is no way to make that code behave, it's totally out of my control.
2022-05-15etc/bash/check.sh: Exclude the file from FIXME checkEuAndreh1-1/+1
2022-05-15etc/bash/check.sh: Move to the root of the Git directory before running testsEuAndreh1-0/+2
2022-05-15etc/bash/check.sh: Assert clean tilde repositoriesEuAndreh1-1/+13
2022-05-15etc/bash/rc: Indent v() function body, remove commented codeEuAndreh1-7/+6
2022-05-15etc/bash/rc: Move $V_FILES into v() function, use heredocs instead of stringsEuAndreh1-15/+16
Having the $V_FILES variable inside the v() function allows it to be a little bit more dynamic: files manually added to the list while editing the file aren't included as new values without `reload`ing the rc file, but new files created in the ~/Documents/txt/ directory are.
2022-05-15etc/bash/rc(cosmetic): Move comment on extra files into if statementEuAndreh1-3/+1
2022-05-15etc/bash/rc: Move stty modification to the end of the file; remove dead "case"EuAndreh1-9/+1
2022-05-14etc/bash/rc: Set $HISTCONTROL variable.EuAndreh1-0/+2
2022-05-14etc/bash/rc: Show pretty tilde path in $V_FILES, in a better orderEuAndreh1-7/+7
2022-05-14bin/brightness: Put device information in $BACKLIGHT_DEVICE variable instead ↵EuAndreh1-0/+1
of file
2022-05-13etc/bash/rc: Link ~/.bashrc to ~/.profile and add set $ENV to ~/.profileEuAndreh1-0/+2
Make .profile the only configuration file for shells. It concentrates not only environment variables as login files should, but also aliases, functions, etc. Setting $ENV to ~/.profile makes interactive calls to `sh` load this files, and symlinking ~/.bashrc makes interactive calls to `bash` do the same. Ultimately, I find that the separation of environment variables to login files, usually in ~/.bash_profile, to make sense when thinking about user sessions and logins, but not something I benefit from. Staying logged in for multiple days, I modify environment variables that I want to affect my existing and new terminal sessions, and having to do extra work for getting those new values (such as an extra command that sources ~/.profile) isn't interesting to me.
2022-05-13etc/bash/rc: Include `f ...` and `v ...` in shell historyEuAndreh1-1/+2
2022-05-13etc/bash/rc: Replace hardcoded ~/.config paths with $XDG_CONFIG_HOME in ↵EuAndreh1-6/+6
`v()` function
2022-05-13etc/bash/vcs-ps1.sh: Include `shell_level` in $PS1 variableEuAndreh1-1/+14
2022-05-12etc/bash/check.sh: Add assert for FIXME markersEuAndreh1-0/+5
2022-05-12etc/bash/check.sh: Do not assert loading ~/.profile goes without errorEuAndreh1-2/+0
There are files not under my control, such as completion files, that invariably fail the assertion.
2022-05-12bin/password: Add executable, a replacement for the genpassword functionEuAndreh1-5/+0
2022-05-12etc/bash/rc: Setup working version alongside ~/.profileEuAndreh1-0/+346
2022-05-12Move symlink to private files to a relative locationEuAndreh1-1/+1
To avoid hardcoding both "/home/andreh" and "dev/private/dotfiles".
2022-05-12Move Git repository into ~/.usr/.git/EuAndreh4-0/+218