- Docs/
Bash
105 words
Table of Contents
Usage #
- Make symboliclink.
# remove previous files
rm -rf ~/.bash_myplug
rm -rf /usr/lobal/bin/.bash_myplug
# make symbolic links
ln -s $HOME/Documents/GitHub/dotfiles/bash/bash_myplug.sh ~/.bash_myplug
ln -s $HOME/Documents/GitHub/dotfiles/bash/bash_myplug.sh /usr/local/bin/.bash_myplug
# check
file ~/.bash_myplug
file /usr/local/bin/.bash_myplug
- Write this at the end of
~/.bashrc
.
source ~/.bash_myplug/bash_myplug.sh
- For load the settings. Reopen bash, or run command as bellow in current bash terminal.
source ~/.bashrc
Auto setup #
Run this command.
sudo -E bash ./setup.sh
Dependencies #
LSP #
:MasonInstall bash-language-server
:MasonInstall shellcheck
:MasonInstall shellfmt
sudo #
lecture #
Add these lines in your sudoers file.
Defaults lecture=always
Defaults lecture_file=~/GitHub/Documents/dotfiles/bash/src/sudo_lecture.txt
visudo #
sudo unlink /usr/bin/vi
sudo ln -s /usr/bin/nvim /usr/sbin/vi