Compare commits

...

14 Commits

Author SHA1 Message Date
87ade6f0aa
dracut/99-cmdline.conf.sedric: restore nouveau blacklisting
although it's yet to be applied or tried on Sedric
2024-07-06 12:04:59 +03:00
055151cf7f
{bash,zsh}rc: add comments on pyenv virtualenv plugins 2024-07-06 12:02:18 +03:00
22425e5d12
{bash,zsh}rc: fix $PATH mainly for rbenv 2024-07-06 10:04:55 +03:00
b65b306c9e
{bash,zsh}rc: add ruby-build comment for rbenv 2024-07-06 09:50:04 +03:00
0a46356790
bashrc: add missing dot 2024-07-06 09:45:03 +03:00
89b738d169
firefox: default create containers I have been using since last Tuesday
Maybe I am a bit lazy, but as the option exists, why not use it, and it might also give inspiration should another user on my systems find their way to Firefox
2024-07-06 09:19:18 +03:00
0d59ea1cec
rc/bashrc: fix typo 2024-07-06 09:06:57 +03:00
a0f5a327b5
{bash,zsh}rc: add pyenv & rbenv 2024-07-06 09:02:28 +03:00
84df897758
{bash,zsh}rc: remove commented homebrew lines and fix-node function 2024-07-06 08:45:03 +03:00
045f695e85
replace .node-version with .nvmrc for less micromanaging 2024-07-06 08:40:54 +03:00
54ebd58447
{bash,zsh}rc: s/WARNING!/Information:/g for corepack else 2024-07-06 08:36:09 +03:00
bcabcfcdb1
rc/{bash,zsh}rc: add nvm 2024-07-06 08:35:13 +03:00
88173c31dd
add .node-version 2024-07-06 08:17:12 +03:00
df935f9084
{bash,zsh}rc: add nodenv support 2024-07-06 08:16:06 +03:00
6 changed files with 120 additions and 59 deletions

1
.gitignore vendored
View File

@ -11,6 +11,7 @@
!.mailmap
!.mikaela
!.mikaela_install
!.nvmrc
!.pre-commit-config.yaml
!.prettierignore
!.prettierrc

1
.nvmrc Normal file
View File

@ -0,0 +1 @@
lts/*

View File

@ -1,2 +1,2 @@
kernel_cmdline="root=UUID=c3df30ca-878b-4125-bcb4-ba3ba4398efd rw rd.lvm.lv=fedora_localhost-live/root rd.luks.uuid=luks-f9a33e19-4176-44b3-8e06-2ee7fb70f3d0 mitigations=auto,nosmt btusb.force_scofix=1 btusb.enable_autosuspend=0 cpufreq.default_governor=schedutil"
kernel_cmdline="root=UUID=c3df30ca-878b-4125-bcb4-ba3ba4398efd rw rd.lvm.lv=fedora_localhost-live/root rd.luks.uuid=luks-f9a33e19-4176-44b3-8e06-2ee7fb70f3d0 mitigations=auto,nosmt btusb.force_scofix=1 btusb.enable_autosuspend=0 cpufreq.default_governor=schedutil rd.driver.blacklist=nouveau modprobe.blacklist=nouveau"
# vim: filetype=conf

View File

@ -94,9 +94,44 @@
"Containers": {
"Default": [
{
"color": "red",
"color": "white",
"icon": "fence",
"name": "DIY"
"name": "Facebook"
},
{
"color": "white",
"icon": "chill",
"name": "ff"
},
{
"color": "pink",
"icon": "briefcase",
"name": "Git"
},
{
"color": "orange",
"icon": "chill",
"name": "Google"
},
{
"color": "blue",
"icon": "vacation",
"name": "HSL"
},
{
"color": "purple",
"icon": "chill",
"name": "IM"
},
{
"color": "cyan",
"icon": "briefcase",
"name": "LinkedIn"
},
{
"color": "green",
"icon": "pet",
"name": "WhatsApp"
}
]
},

View File

@ -210,14 +210,6 @@ TZ=$(date +%Z)
# Sets PATH. To add another path, add :</path/to/new/path> to string below.
PATH=$HOME/.local/bin:$HOME/bin:$HOME/go/bin:$HOME/.local/share/flatpak/exports/bin:/var/lib/flatpak/exports/bin:/usr/local/bin:/usr/local/sbin:/usr/local/games:/snap/bin:/usr/bin:/usr/sbin:/usr/games:/bin:/sbin:/games:$PATH
# Add RubyGems to PATH
if hash ruby 2> /dev/null; then
PATH="$(ruby -e 'print Gem.user_dir')/bin:$PATH"
fi
# Removes duplicates from $PATH. Copied from https://unix.stackexchange.com/a/14896
PATH=$(echo "$PATH" | awk -v RS=':' -v ORS=":" '!a[$1]++{if (NR > 1) printf ORS; printf $a[$1]}')
# Colours to less
# Copied from https://nion.modprobe.de/blog/archives/572-less-colors-for-man-pages.html
export LESS_TERMCAP_mb=$'\E[01;31m'
@ -268,6 +260,45 @@ export LOCALDOMAIN=.
# regardless of whether DNSSEC=true or not.
export RES_OPTIONS="timeout:2 attempts:2 rotate edns0 trust-ad"
# https://github.com/nvm-sh/nvm
if [ -d ~/.nvm ]; then
. ~/.nvm/nvm.sh
. ~/.nvm/bash_completion
fi
# https://github.com/rbenv/rbenv
if [ -d ~/.rbenv/bin ]; then
PATH="$HOME/.rbenv/bin:$HOME/.rbenv/shims:$PATH"
rbenv init > /dev/null 2>&1
# Remember! And verify it before running!
# git clone https://github.com/rbenv/ruby-build.git "$(rbenv root)"/plugins/ruby-build
fi
# Add RubyGems to PATH
if hash ruby 2> /dev/null; then
PATH="$(ruby -e 'print Gem.user_dir')/bin:$PATH"
fi
# https://github.com/pyenv/pyenv
if [ -d ~/.pyenv/bin ]; then
PATH="$HOME/.pyenv/bin:$PATH"
pyenv init > /dev/null 2>&1
# Worth considering (and verifying before running)
# git clone https://github.com/pyenv/pyenv-virtualenv.git $(pyenv root)/plugins/pyenv-virtualenv
# git clone https://github.com/pyenv/pyenv-virtualenvwrapper.git $(pyenv root)/plugins/pyenv-virtualenvwrapper
fi
# https://github.com/nodenv/nodenv
if [ -d ~/.nodenv/bin ]; then
PATH="$HOME/.nodenv/bin:$PATH"
eval "$(nodenv init - bash)"
# Remember! And verify it before running!
# git clone https://github.com/nodenv/node-build.git "$(nodenv root)"/plugins/node-build
fi
# Removes duplicates from $PATH. Copied from https://unix.stackexchange.com/a/14896
PATH=$(echo "$PATH" | awk -v RS=':' -v ORS=":" '!a[$1]++{if (NR > 1) printf ORS; printf $a[$1]}')
##### Aliases RJ706I #####
# To get sudo work with aliases.
@ -431,13 +462,6 @@ alias cwho="who -H -w -u"
# FINEID to ssh-agent
alias fineid="ssh-add -s /usr/lib64/libcryptoki.so"
# Homebrew
#alias homebrew-install="cd ~;git clone https://github.com/Homebrew/homebrew.git --depth=1;mkdir -p .local;rsync -aP homebrew/* .local;rsync -aP homebrew/.* .local;rm -rf homebrew"
#alias homebrew-install-root="cd /usr;git clone https://github.com/Homebrew/homebrew.git --depth=1;mkdir -p local;rsync -aP homebrew/* local;rsync -aP homebrew/.* local/;\chmod -v -R 755 local;chown -R root:wheel local;rm -rf homebrew"
#alias linuxbrew-install="cd ~;git clone https://github.com/Homebrew/linuxbrew.git --depth=1;mkdir -p .local;rsync -aP linuxbrew/* .local;rsync -aP linuxbrew/.* .local;rm -rf linuxbrew"
#alias linuxbrew-install-root="cd /usr;git clone https://github.com/Homebrew/linuxbrew.git --depth=1;mkdir -p local;rsync -aP linuxbrew/* local;rsync -aP linuxbrew/.* local/;\chmod -v -R 755 local;chown -R root:wheel local;rm -rf linuxbrew"
#export HOMEBREW_LOGS=$HOME/.cache/Homebrew/Logs
# OS X
# What is this?
#alias osx-server-caching-interface="serveradmin settings caching:Interface ="
@ -589,7 +613,7 @@ if hash corepack 2> /dev/null; then
alias prettier="pnpm exec prettier --cache --ignore-unknown"
fi
else
echo "WARNING! corepack is not installed."
echo "Information: corepack is not installed."
fi
# https://pnpm.io/installation#using-a-shorter-alias
@ -731,18 +755,6 @@ function shell-things {
}
# This function fixes nodejs on Debian based systems.
# (Everything expects nodejs to be called as node, but it's not with Debian.)
fix-node() {
if [[ $USER == "root" && -f /usr/bin/nodejs && ! -f /usr/bin/node && ! -f /usr/local/bin/node ]]; then
ln -fnsv /usr/bin/nodejs /usr/local/bin/node
fi
mkdir -vp "$HOME/.local/bin"
if [[ -f /usr/bin/nodejs && ! -f /usr/bin/node && ! -f /usr/local/bin/node && ! -f $HOME/.local/bin/node ]]; then
ln -fnsv /usr/bin/nodejs "$HOME/.local/bin/node"
fi
}
# This function removes and regenerates ssh host keys.
#ssh-regen-host-keys () {

View File

@ -177,14 +177,6 @@ TZ=$(date +%Z)
# Sets PATH. To add another path, add :</path/to/new/path> to string below.
PATH=$HOME/.local/bin:$HOME/bin:$HOME/go/bin:$HOME/.local/share/flatpak/exports/bin:/var/lib/flatpak/exports/bin:/usr/local/bin:/usr/local/sbin:/usr/local/games:/snap/bin:/usr/bin:/usr/sbin:/usr/games:/bin:/sbin:/games:$PATH
# Add RubyGems to PATH
if hash ruby 2>/dev/null; then
PATH="$(ruby -e 'print Gem.user_dir')/bin:$PATH"
fi
# Removes duplicates from $PATH. Copied from https://unix.stackexchange.com/a/14896
PATH=$(echo "$PATH" | awk -v RS=':' -v ORS=":" '!a[$1]++{if (NR > 1) printf ORS; printf $a[$1]}')
# Colours to less
# Copied from https://nion.modprobe.de/blog/archives/572-less-colors-for-man-pages.html
export LESS_TERMCAP_mb=$'\E[01;31m'
@ -234,6 +226,45 @@ export LOCALDOMAIN=.
# regardless of whether DNSSEC=true or not.
export RES_OPTIONS="timeout:2 attempts:2 rotate edns0 trust-ad"
# https://github.com/nvm-sh/nvm
if [ -d ~/.nvm ]; then
. ~/.nvm/nvm.sh
. ~/.nvm/bash_completion
fi
# https://github.com/rbenv/rbenv
if [ -d ~/.rbenv/bin ]; then
PATH="$HOME/.rbenv/bin:$HOME/.rbenv/shims:$PATH"
rbenv init >/dev/null 2>&1
# Remember! And verify it before running!
# git clone https://github.com/rbenv/ruby-build.git "$(rbenv root)"/plugins/ruby-build
fi
# Add RubyGems to PATH
if hash ruby 2>/dev/null; then
PATH="$(ruby -e 'print Gem.user_dir')/bin:$PATH"
fi
# https://github.com/pyenv/pyenv
if [ -d ~/.pyenv/bin ]; then
PATH="$HOME/.pyenv/bin:$PATH"
pyenv init >/dev/null 2>&1
# Worth considering (and verifying before running)
# git clone https://github.com/pyenv/pyenv-virtualenv.git $(pyenv root)/plugins/pyenv-virtualenv
# git clone https://github.com/pyenv/pyenv-virtualenvwrapper.git $(pyenv root)/plugins/pyenv-virtualenvwrapper
fi
# https://github.com/nodenv/nodenv
if [ -d ~/.nodenv/bin ]; then
PATH="$HOME/.nodenv/bin:$PATH"
eval "$(nodenv init - zsh)"
# Remember! And verify it before running!
# git clone https://github.com/nodenv/node-build.git "$(nodenv root)"/plugins/node-build
fi
# Removes duplicates from $PATH. Copied from https://unix.stackexchange.com/a/14896
PATH=$(echo "$PATH" | awk -v RS=':' -v ORS=":" '!a[$1]++{if (NR > 1) printf ORS; printf $a[$1]}')
##### Aliases RJ706I #####
# To get sudo work with aliases.
@ -420,13 +451,6 @@ alias cwho="who -H -w -u"
# FINEID to ssh-agent
alias fineid="ssh-add -s /usr/lib64/libcryptoki.so"
# Homebrew
#alias homebrew-install="cd ~;git clone https://github.com/Homebrew/homebrew.git --depth=1;mkdir -p .local;rsync -aP homebrew/* .local;rsync -aP homebrew/.* .local;rm -rf homebrew"
#alias homebrew-install-root="cd /usr;git clone https://github.com/Homebrew/homebrew.git --depth=1;mkdir -p local;rsync -aP homebrew/* local;rsync -aP homebrew/.* local/;chmod -v -R 755 local;chown -R root:wheel local;rm -rf homebrew"
#alias linuxbrew-install="cd ~;git clone https://github.com/Homebrew/linuxbrew.git --depth=1;mkdir -p .local;rsync -aP linuxbrew/* .local;rsync -aP linuxbrew/.* .local;rm -rf linuxbrew"
#alias linuxbrew-install-root="cd /usr;git clone https://github.com/Homebrew/linuxbrew.git --depth=1;mkdir -p local;rsync -aP linuxbrew/* local;rsync -aP linuxbrew/.* local/;chmod -v -R 755 local;chown -R root:wheel local;rm -rf linuxbrew"
#export HOMEBREW_LOGS=$HOME/.cache/Homebrew/Logs
# OS X
# What is this?
#alias osx-server-caching-interface="serveradmin settings caching:Interface ="
@ -579,7 +603,7 @@ if hash corepack 2>/dev/null; then
alias prettier="pnpm exec prettier --cache --ignore-unknown"
fi
else
echo "WARNING! corepack is not installed."
echo "Information: corepack is not installed."
fi
# https://pnpm.io/installation#using-a-shorter-alias
@ -721,18 +745,6 @@ cd
}
# This function fixes nodejs on Debian based systems.
# (Everything expects nodejs to be called as node, but it's not with Debian.)
function fix-node {
if [[ $USER = "root" && -f /usr/bin/nodejs && ! -f /usr/bin/node && ! -f /usr/local/bin/node ]] then;
ln -fnsv /usr/bin/nodejs /usr/local/bin/node
fi
mkdir -p $HOME/.local/bin
if [[ -f /usr/bin/nodejs && ! -f /usr/bin/node && ! -f /usr/local/bin/node && ! -f $HOME/.local/bin/node ]] then;
ln -fnsv /usr/bin/nodejs $HOME/.local/bin/node
fi
}
# This function removes and regenerates ssh host keys.
#ssh-regen-host-keys () {