diff --git a/rc/bashrc b/rc/bashrc index b812d4fc..7afa6cdf 100755 --- a/rc/bashrc +++ b/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 () { diff --git a/rc/zshrc b/rc/zshrc index 79c59cf9..5aa435aa 100755 --- a/rc/zshrc +++ b/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 () {