mirror of
https://github.com/rileyrg/linux-init.git
synced 2024-09-29 05:37:29 +02:00
path /profile tweaks
This commit is contained in:
parent
63989e5279
commit
3bc6e1cd1f
4 changed files with 27 additions and 85 deletions
6
DotFiles/.bash_profile
Normal file → Executable file
6
DotFiles/.bash_profile
Normal file → Executable file
|
@ -5,12 +5,6 @@ logger -t "startup-initfile" BASH_PROFILE
|
|||
[ -f ~/.bashrc ] && . ~/.bashrc || true
|
||||
#emacs --bg-daemon &> /dev/null &
|
||||
|
||||
if [ -d "/gnu" ]; then
|
||||
echo "GUIX initialised."
|
||||
GUIX_PROFILE="/home/rgr/.guix-profile"
|
||||
. "$GUIX_PROFILE/etc/profile"
|
||||
fi
|
||||
|
||||
[ -f "${HOME}/.bash_profile.local" ] && . "${HOME}/.bash_profile.local"
|
||||
|
||||
if [ -f "${HOME}/.START_SWAY" ]; then
|
||||
|
|
54
README.md
54
README.md
|
@ -328,9 +328,9 @@ see [/usr/share/doc/gnupg/examples](file:///usr/share/doc/gnupg/examples)
|
|||
|
||||
# Maintained in linux-config.org
|
||||
logger -t "startup-initfile" ZPROFILE
|
||||
if [ -f ~/.profile ]; then
|
||||
emulate sh -c '. ~/.profile'
|
||||
fi
|
||||
# if [ -f ~/.profile ]; then
|
||||
# emulate sh -c '. ~/.profile'
|
||||
# fi
|
||||
|
||||
2. etc/zsh/zprofile
|
||||
|
||||
|
@ -351,13 +351,13 @@ see [/usr/share/doc/gnupg/examples](file:///usr/share/doc/gnupg/examples)
|
|||
|
||||
# Maintained in linux-config.org
|
||||
logger -t "startup-initfile" ETC-ZSHENV
|
||||
if [[ -z "$PATH" || "$PATH" == "/bin:/usr/bin" ]]
|
||||
then
|
||||
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/games"
|
||||
if [ -f /etc/profile ]; then
|
||||
emulate sh -c '. /etc/profile'
|
||||
fi
|
||||
fi
|
||||
# if [[ -z "$PATH" || "$PATH" == "/bin:/usr/bin" ]]
|
||||
# then
|
||||
# export PATH="/usr/local/bin:/usr/bin:/bin:/usr/games"
|
||||
# if [ -f /etc/profile ]; then
|
||||
# emulate sh -c '. /etc/profile'
|
||||
# fi
|
||||
# fi
|
||||
|
||||
2. ~/.config/zsh/.zshenv
|
||||
|
||||
|
@ -404,32 +404,6 @@ Directory is [here](.oh-my-zsh/).
|
|||
<https://stackoverflow.com/a/38865693/37370>
|
||||
|
||||
|
||||
# Guix
|
||||
|
||||
A package management tool for and distribution of the GNU system
|
||||
|
||||
I've removed this for now. Hellishly complex and I have to be honest, I can't make head nor tail of the docs and really cant
|
||||
be reading reams of "freedom" propaganda that requires in a degree in GUIX to understand how to suid a GUIX installed utiliy.
|
||||
|
||||
if [ -d "/gnu" ]; then
|
||||
echo "GUIX initialised."
|
||||
GUIX_PROFILE="/home/rgr/.guix-profile"
|
||||
. "$GUIX_PROFILE/etc/profile"
|
||||
fi
|
||||
|
||||
|
||||
## remove GUIX
|
||||
|
||||
# Maintained in linux-config.org
|
||||
sudo systemctl stop guix-daemon.service
|
||||
sudo systemctl stop gnu-store.mount
|
||||
sudo rm -rf /gnu
|
||||
sudo rm -rf /var/guix
|
||||
sudo rm -rf ~/.config/guix
|
||||
sudo rm -rf /etc/guix#+end_src
|
||||
rm -rf ~/.guix-profile
|
||||
|
||||
|
||||
# Tmux :tmux:
|
||||
|
||||
|
||||
|
@ -2038,7 +2012,7 @@ but in both cases we check if it exists in the sway tree, and, if not, set it it
|
|||
notify-send -t 3000 "${@}" || true
|
||||
|
||||
|
||||
<a id="org93c117d"></a>
|
||||
<a id="org26ca51a"></a>
|
||||
|
||||
### ~/bin/sway/sway-screen
|
||||
|
||||
|
@ -2084,7 +2058,7 @@ See <https://www.reddit.com/r/swaywm/comments/10ys0oy/comment/j80lu88/?context=3
|
|||
|
||||
### ~/bin/sway/sway-screen-menu
|
||||
|
||||
Gui to select a display and enable/disable it. Calls down to [~/bin/sway/sway-screen](#org93c117d).
|
||||
Gui to select a display and enable/disable it. Calls down to [~/bin/sway/sway-screen](#org26ca51a).
|
||||
|
||||
:ID: 82455cae-1c48-48b2-a8b3-cb5d44eeaee9
|
||||
|
||||
|
@ -3369,7 +3343,7 @@ strip debug info and store elsewhere
|
|||
|
||||
pulse/pipeline volume control.
|
||||
Pass in a volume string to change the volume (man pactl) or on/off/toggle. It wont allow larger than 100% volume. Always returns the current volume volume/status.
|
||||
See [examples](#orgabc1ff1).
|
||||
See [examples](#org2ff1d14).
|
||||
|
||||
#!/usr/bin/env bash
|
||||
# Maintained in linux-config.org
|
||||
|
@ -3403,7 +3377,7 @@ See [examples](#orgabc1ff1).
|
|||
echo "$(getVolume)"
|
||||
|
||||
|
||||
<a id="orgabc1ff1"></a>
|
||||
<a id="org2ff1d14"></a>
|
||||
|
||||
### Examples:
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# Maintained in linux-config.org
|
||||
logger -t "startup-initfile" ZPROFILE
|
||||
if [ -f ~/.profile ]; then
|
||||
emulate sh -c '. ~/.profile'
|
||||
fi
|
||||
# if [ -f ~/.profile ]; then
|
||||
# emulate sh -c '. ~/.profile'
|
||||
# fi
|
||||
|
|
|
@ -945,9 +945,9 @@ see [[file:/usr/share/doc/gnupg/examples][/usr/share/doc/gnupg/examples]]
|
|||
#+begin_src bash :tangle "~/.config/zsh/.zprofile"
|
||||
# Maintained in linux-config.org
|
||||
logger -t "startup-initfile" ZPROFILE
|
||||
if [ -f ~/.profile ]; then
|
||||
emulate sh -c '. ~/.profile'
|
||||
fi
|
||||
# if [ -f ~/.profile ]; then
|
||||
# emulate sh -c '. ~/.profile'
|
||||
# fi
|
||||
#+end_src
|
||||
**** etc/zsh/zprofile
|
||||
#+begin_src bash :tangle "etc/zsh/zshprofile"
|
||||
|
@ -966,13 +966,13 @@ see [[file:/usr/share/doc/gnupg/examples][/usr/share/doc/gnupg/examples]]
|
|||
#+begin_src bash :tangle "etc/zsh/zshenv"
|
||||
# Maintained in linux-config.org
|
||||
logger -t "startup-initfile" ETC-ZSHENV
|
||||
if [[ -z "$PATH" || "$PATH" == "/bin:/usr/bin" ]]
|
||||
then
|
||||
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/games"
|
||||
if [ -f /etc/profile ]; then
|
||||
emulate sh -c '. /etc/profile'
|
||||
fi
|
||||
fi
|
||||
# if [[ -z "$PATH" || "$PATH" == "/bin:/usr/bin" ]]
|
||||
# then
|
||||
# export PATH="/usr/local/bin:/usr/bin:/bin:/usr/games"
|
||||
# if [ -f /etc/profile ]; then
|
||||
# emulate sh -c '. /etc/profile'
|
||||
# fi
|
||||
# fi
|
||||
#+end_src
|
||||
**** ~/.config/zsh/.zshenv
|
||||
Link this into ${HOME}
|
||||
|
@ -1019,32 +1019,6 @@ CLOSED: [2021-06-30 Wed 15:18]
|
|||
https://stackoverflow.com/questions/12765344/oh-my-zsh-slow-but-only-for-certain-git-repo
|
||||
https://stackoverflow.com/a/38865693/37370
|
||||
|
||||
* Guix
|
||||
A package management tool for and distribution of the GNU system
|
||||
|
||||
I've removed this for now. Hellishly complex and I have to be honest, I can't make head nor tail of the docs and really cant
|
||||
be reading reams of "freedom" propaganda that requires in a degree in GUIX to understand how to suid a GUIX installed utiliy.
|
||||
|
||||
#+begin_src bash :tangle "DotFiles/.bash_profile"
|
||||
if [ -d "/gnu" ]; then
|
||||
echo "GUIX initialised."
|
||||
GUIX_PROFILE="/home/rgr/.guix-profile"
|
||||
. "$GUIX_PROFILE/etc/profile"
|
||||
fi
|
||||
|
||||
#+end_src
|
||||
|
||||
** remove GUIX
|
||||
#+begin_src bash :tangle "~/bin/remove-guix"
|
||||
# Maintained in linux-config.org
|
||||
sudo systemctl stop guix-daemon.service
|
||||
sudo systemctl stop gnu-store.mount
|
||||
sudo rm -rf /gnu
|
||||
sudo rm -rf /var/guix
|
||||
sudo rm -rf ~/.config/guix
|
||||
sudo rm -rf /etc/guix#+end_src
|
||||
rm -rf ~/.guix-profile
|
||||
#+end_src
|
||||
* Tmux :tmux:
|
||||
** ~/.profile
|
||||
:PROPERTIES:
|
||||
|
|
Loading…
Reference in a new issue