Skip to main content
  1. Docs/

Bash

105 words

Usage #

  1. 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
  1. Write this at the end of ~/.bashrc.
source ~/.bash_myplug/bash_myplug.sh
  1. 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