mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-22 03:09:22 +01:00
bashrc: Fix #26 .
I replaced bashrc version of fix-node with "which fix-node" output from zsh.
This commit is contained in:
parent
98e8b008c6
commit
483da09e60
26
bashrc
26
bashrc
@ -732,26 +732,24 @@ echo "I have now finished everything that I was supposed to do."
|
||||
|
||||
# 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 -s /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 -s /usr/bin/nodejs $HOME/.local/bin/node
|
||||
fi
|
||||
|
||||
fix-node () {
|
||||
if [[ $USER = "root" && -f /usr/bin/nodejs && ! -f /usr/bin/node && ! -f /usr/local/bin/node ]]
|
||||
then
|
||||
ln -s /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 -s /usr/bin/nodejs $HOME/.local/bin/node
|
||||
fi
|
||||
}
|
||||
|
||||
# .custom
|
||||
if [ -f ~/.custom ]; then
|
||||
source ~/.custom
|
||||
fi
|
||||
fi
|
||||
|
||||
# .bash_custom
|
||||
if [ -f ~/.bash_custom ]; then
|
||||
source ~/.bash_custom
|
||||
fi
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user