mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-05 21:28:48 +00:00
Incorporate colors into added echo statements & replace those echo statements with printf %bn statements
This commit is contained in:
parent
2c447f7491
commit
b329b572ae
|
@ -14,7 +14,7 @@ cloneNeovim() {
|
||||||
}
|
}
|
||||||
|
|
||||||
installNeovim() {
|
installNeovim() {
|
||||||
echo "Installing Neovim..."
|
printf "%b\n" "${YELLOW}Installing Neovim...${RC}"
|
||||||
case "$PACKAGER" in
|
case "$PACKAGER" in
|
||||||
pacman)
|
pacman)
|
||||||
$ESCALATION_TOOL "$PACKAGER" -S --needed --noconfirm neovim ripgrep fzf python-virtualenv luarocks go shellcheck
|
$ESCALATION_TOOL "$PACKAGER" -S --needed --noconfirm neovim ripgrep fzf python-virtualenv luarocks go shellcheck
|
||||||
|
@ -36,7 +36,7 @@ installNeovim() {
|
||||||
}
|
}
|
||||||
|
|
||||||
backupNeovimConfig() {
|
backupNeovimConfig() {
|
||||||
echo "Backing up existing configuration files..."
|
printf "%b\n" "${YELLOW}Backing up existing configuration files...${RC}"
|
||||||
if [ -d "$HOME/.config/nvim" ] && [ ! -d "$HOME/.config/nvim-backup" ]; then
|
if [ -d "$HOME/.config/nvim" ] && [ ! -d "$HOME/.config/nvim-backup" ]; then
|
||||||
cp -r "$HOME/.config/nvim" "$HOME/.config/nvim-backup"
|
cp -r "$HOME/.config/nvim" "$HOME/.config/nvim-backup"
|
||||||
fi
|
fi
|
||||||
|
@ -44,7 +44,7 @@ backupNeovimConfig() {
|
||||||
}
|
}
|
||||||
|
|
||||||
linkNeovimConfig() {
|
linkNeovimConfig() {
|
||||||
echo "Linking Neovim configuration files..."
|
printf "%b\n" "${YELLOW}Linking Neovim configuration files...${RC}"
|
||||||
mkdir -p "$HOME/.config/nvim"
|
mkdir -p "$HOME/.config/nvim"
|
||||||
ln -s "$gitpath/titus-kickstart/"* "$HOME/.config/nvim/" # Wild card is used here to link all contents of titus-kickstart.
|
ln -s "$gitpath/titus-kickstart/"* "$HOME/.config/nvim/" # Wild card is used here to link all contents of titus-kickstart.
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user