mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-25 12:49:26 +01:00
{bash,zsh}rc: remove commented homebrew lines and fix-node function
This commit is contained in:
parent
045f695e85
commit
84df897758
19
rc/bashrc
19
rc/bashrc
@ -445,13 +445,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 ="
|
||||
@ -745,18 +738,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 () {
|
||||
|
19
rc/zshrc
19
rc/zshrc
@ -434,13 +434,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 ="
|
||||
@ -735,18 +728,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 () {
|
||||
|
Loading…
Reference in New Issue
Block a user