mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2025-08-17 20:07:20 +02:00
Compare commits
14 Commits
4fc9eb6281
...
87ade6f0aa
Author | SHA1 | Date | |
---|---|---|---|
87ade6f0aa | |||
055151cf7f | |||
22425e5d12 | |||
b65b306c9e | |||
0a46356790 | |||
89b738d169 | |||
0d59ea1cec | |||
a0f5a327b5 | |||
84df897758 | |||
045f695e85 | |||
54ebd58447 | |||
bcabcfcdb1 | |||
88173c31dd | |||
df935f9084 |
1
.gitignore
vendored
1
.gitignore
vendored
@ -11,6 +11,7 @@
|
|||||||
!.mailmap
|
!.mailmap
|
||||||
!.mikaela
|
!.mikaela
|
||||||
!.mikaela_install
|
!.mikaela_install
|
||||||
|
!.nvmrc
|
||||||
!.pre-commit-config.yaml
|
!.pre-commit-config.yaml
|
||||||
!.prettierignore
|
!.prettierignore
|
||||||
!.prettierrc
|
!.prettierrc
|
||||||
|
@ -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
|
# vim: filetype=conf
|
||||||
|
@ -94,9 +94,44 @@
|
|||||||
"Containers": {
|
"Containers": {
|
||||||
"Default": [
|
"Default": [
|
||||||
{
|
{
|
||||||
"color": "red",
|
"color": "white",
|
||||||
"icon": "fence",
|
"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"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
68
rc/bashrc
68
rc/bashrc
@ -210,14 +210,6 @@ TZ=$(date +%Z)
|
|||||||
# Sets PATH. To add another path, add :</path/to/new/path> to string below.
|
# 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
|
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
|
# Colours to less
|
||||||
# Copied from https://nion.modprobe.de/blog/archives/572-less-colors-for-man-pages.html
|
# Copied from https://nion.modprobe.de/blog/archives/572-less-colors-for-man-pages.html
|
||||||
export LESS_TERMCAP_mb=$'\E[01;31m'
|
export LESS_TERMCAP_mb=$'\E[01;31m'
|
||||||
@ -268,6 +260,45 @@ export LOCALDOMAIN=.
|
|||||||
# regardless of whether DNSSEC=true or not.
|
# regardless of whether DNSSEC=true or not.
|
||||||
export RES_OPTIONS="timeout:2 attempts:2 rotate edns0 trust-ad"
|
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 #####
|
##### Aliases RJ706I #####
|
||||||
|
|
||||||
# To get sudo work with aliases.
|
# To get sudo work with aliases.
|
||||||
@ -431,13 +462,6 @@ alias cwho="who -H -w -u"
|
|||||||
# FINEID to ssh-agent
|
# FINEID to ssh-agent
|
||||||
alias fineid="ssh-add -s /usr/lib64/libcryptoki.so"
|
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
|
# OS X
|
||||||
# What is this?
|
# What is this?
|
||||||
#alias osx-server-caching-interface="serveradmin settings caching:Interface ="
|
#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"
|
alias prettier="pnpm exec prettier --cache --ignore-unknown"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "WARNING! corepack is not installed."
|
echo "Information: corepack is not installed."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# https://pnpm.io/installation#using-a-shorter-alias
|
# 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.
|
# This function removes and regenerates ssh host keys.
|
||||||
|
|
||||||
#ssh-regen-host-keys () {
|
#ssh-regen-host-keys () {
|
||||||
|
68
rc/zshrc
68
rc/zshrc
@ -177,14 +177,6 @@ TZ=$(date +%Z)
|
|||||||
# Sets PATH. To add another path, add :</path/to/new/path> to string below.
|
# 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
|
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
|
# Colours to less
|
||||||
# Copied from https://nion.modprobe.de/blog/archives/572-less-colors-for-man-pages.html
|
# Copied from https://nion.modprobe.de/blog/archives/572-less-colors-for-man-pages.html
|
||||||
export LESS_TERMCAP_mb=$'\E[01;31m'
|
export LESS_TERMCAP_mb=$'\E[01;31m'
|
||||||
@ -234,6 +226,45 @@ export LOCALDOMAIN=.
|
|||||||
# regardless of whether DNSSEC=true or not.
|
# regardless of whether DNSSEC=true or not.
|
||||||
export RES_OPTIONS="timeout:2 attempts:2 rotate edns0 trust-ad"
|
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 #####
|
##### Aliases RJ706I #####
|
||||||
|
|
||||||
# To get sudo work with aliases.
|
# To get sudo work with aliases.
|
||||||
@ -420,13 +451,6 @@ alias cwho="who -H -w -u"
|
|||||||
# FINEID to ssh-agent
|
# FINEID to ssh-agent
|
||||||
alias fineid="ssh-add -s /usr/lib64/libcryptoki.so"
|
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
|
# OS X
|
||||||
# What is this?
|
# What is this?
|
||||||
#alias osx-server-caching-interface="serveradmin settings caching:Interface ="
|
#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"
|
alias prettier="pnpm exec prettier --cache --ignore-unknown"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "WARNING! corepack is not installed."
|
echo "Information: corepack is not installed."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# https://pnpm.io/installation#using-a-shorter-alias
|
# 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.
|
# This function removes and regenerates ssh host keys.
|
||||||
|
|
||||||
#ssh-regen-host-keys () {
|
#ssh-regen-host-keys () {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user