mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-04-15 23:21:23 +02:00
Merge pull request #1324 from adevoss/adevoss-patch-admin-bashrc
Fix: Insert source file in /home/admin/.bashrc
This commit is contained in:
commit
e90d5f63ea
5
build_sdcard.sh
Normal file → Executable file
5
build_sdcard.sh
Normal file → Executable file
@ -699,9 +699,12 @@ sudo bash -c "echo 'net.core.wmem_max = 1048576' >> /etc/sysctl.conf"
|
||||
# install a command-line fuzzy finder (https://github.com/junegunn/fzf)
|
||||
sudo apt -y install fzf
|
||||
|
||||
sudo bash -c "echo '' >> /home/admin/.bashrc"
|
||||
sudo bash -c "echo '# Raspiblitz' >> /home/admin/.bashrc"
|
||||
|
||||
homeFile=/home/admin/.bashrc
|
||||
keyBindings="source /usr/share/doc/fzf/examples/key-bindings.bash"
|
||||
keyBindingsDone=$(cat ${homeFile}|grep -c ${keyBindings})
|
||||
keyBindingsDone=$(cat $homeFile|grep -c "$keyBindings")
|
||||
|
||||
if [ ${keyBindingsDone} -eq 0 ]; then
|
||||
sudo bash -c "echo 'source /usr/share/doc/fzf/examples/key-bindings.bash' >> /home/admin/.bashrc"
|
||||
|
Loading…
x
Reference in New Issue
Block a user