run shfmt on .bashrc and bootstrap.sh
This commit is contained in:
11
bootstrap.sh
11
bootstrap.sh
@@ -32,8 +32,7 @@ __install_bash_completions() {
|
|||||||
mkdir "$bashCompletionsDir"
|
mkdir "$bashCompletionsDir"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for cmp in "${!bashCompletions[@]}"
|
for cmp in "${!bashCompletions[@]}"; do
|
||||||
do
|
|
||||||
source=${bashCompletions[$cmp]}
|
source=${bashCompletions[$cmp]}
|
||||||
dest="$bashCompletionsDir/$cmp.bash"
|
dest="$bashCompletionsDir/$cmp.bash"
|
||||||
|
|
||||||
@@ -44,7 +43,6 @@ __install_bash_completions() {
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
echo "usage: (./)bootstrap.sh [-S][-R]"
|
echo "usage: (./)bootstrap.sh [-S][-R]"
|
||||||
echo
|
echo
|
||||||
@@ -60,8 +58,7 @@ fi
|
|||||||
# Install all configs
|
# Install all configs
|
||||||
if [ "$1" = "-S" ]; then
|
if [ "$1" = "-S" ]; then
|
||||||
# Create symlinks
|
# Create symlinks
|
||||||
for config in "${!configs[@]}"
|
for config in "${!configs[@]}"; do
|
||||||
do
|
|
||||||
ln -s $config ${configs[$config]}
|
ln -s $config ${configs[$config]}
|
||||||
done
|
done
|
||||||
|
|
||||||
@@ -80,15 +77,13 @@ fi
|
|||||||
|
|
||||||
# Remove all configs
|
# Remove all configs
|
||||||
if [ "$1" = "-R" ]; then
|
if [ "$1" = "-R" ]; then
|
||||||
for config in "${!configs[@]}"
|
for config in "${!configs[@]}"; do
|
||||||
do
|
|
||||||
rm -rf ${configs[$config]}
|
rm -rf ${configs[$config]}
|
||||||
done
|
done
|
||||||
|
|
||||||
rm -rf "$bashCompletionsDir"
|
rm -rf "$bashCompletionsDir"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
# Install bash completions defined in hashmap above
|
# Install bash completions defined in hashmap above
|
||||||
if [ "$1" = "-I" ]; then
|
if [ "$1" = "-I" ]; then
|
||||||
__install_bash_completions
|
__install_bash_completions
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
export DOTFILES="$HOME/dotfiles"
|
export DOTFILES="$HOME/dotfiles"
|
||||||
|
|
||||||
export TERM=alacritty
|
export TERM=kitty
|
||||||
export EDITOR=nvim
|
export EDITOR=nvim
|
||||||
export VISUAL=nvim
|
export VISUAL=nvim
|
||||||
|
|
||||||
@@ -26,7 +26,6 @@ PYTHON_BIN="$HOME/.local/bin"
|
|||||||
|
|
||||||
export PATH="$PATH:$MY_BIN:$PYTHON_BIN:$RUSTBIN:$GOBIN"
|
export PATH="$PATH:$MY_BIN:$PYTHON_BIN:$RUSTBIN:$GOBIN"
|
||||||
|
|
||||||
|
|
||||||
# Source bash completions
|
# Source bash completions
|
||||||
source $HOME/.config/bash-completions/*
|
source $HOME/.config/bash-completions/*
|
||||||
|
|
||||||
@@ -50,3 +49,7 @@ set -o vi
|
|||||||
# Show calendar and date on start
|
# Show calendar and date on start
|
||||||
cal -m
|
cal -m
|
||||||
date +"%d %B %Y - %H:%M:%S, %A"
|
date +"%d %B %Y - %H:%M:%S, %A"
|
||||||
|
|
||||||
|
# BEGIN_KITTY_SHELL_INTEGRATION
|
||||||
|
if test -n "$KITTY_INSTALLATION_DIR" -a -e "$KITTY_INSTALLATION_DIR/shell-integration/bash/kitty.bash"; then source "$KITTY_INSTALLATION_DIR/shell-integration/bash/kitty.bash"; fi
|
||||||
|
# END_KITTY_SHELL_INTEGRATION
|
||||||
|
|||||||
Reference in New Issue
Block a user