Update install script
This commit is contained in:
parent
52b74abb99
commit
48f9ee6763
7
install
7
install
@ -238,8 +238,9 @@ for shell in bash zsh; do
|
|||||||
|
|
||||||
echo "Update $rc:"
|
echo "Update $rc:"
|
||||||
echo " - $src"
|
echo " - $src"
|
||||||
if [ $(grep -F "$src" $rc | wc -l) -gt 0 ]; then
|
line=$(grep -nF "$src" $rc | sed 's/:.*//')
|
||||||
echo " - Not added (already being sourced)"
|
if [ -n "$line" ]; then
|
||||||
|
echo " - Already exists (line #$line)"
|
||||||
else
|
else
|
||||||
echo $src >> $rc
|
echo $src >> $rc
|
||||||
echo " - Added"
|
echo " - Added"
|
||||||
@ -253,5 +254,7 @@ Finished. Reload your .bashrc or .zshrc.
|
|||||||
source ~/.zshrc # zsh
|
source ~/.zshrc # zsh
|
||||||
|
|
||||||
To uninstall fzf, simply remove the added line.
|
To uninstall fzf, simply remove the added line.
|
||||||
|
|
||||||
|
For more information, see: https://github.com/junegunn/fzf
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user