mirror of
https://github.com/pratiktri/dotfiles.git
synced 2026-02-04 16:41:43 +05:30
# Tmux Config
- Added Catppuccin theme - Added kitty terminal config # Sync and Rectify Vim & NVIM - Undo files are incompatible between VIM & NVIM - saved those files separately - Keybinding for saving and quitting moved to VIM config - VIM & NVIM swapfiles removed - More VIM options set to enhance usability - Synced system vim config and keybindings with ideavimrc # Shell Script File Changes - Reverted to using `#!/bin/sh` as bash is slow and not POSIX compliant. - Reformatted
This commit is contained in:
62
bootstrap.sh
62
bootstrap.sh
@@ -1,19 +1,19 @@
|
||||
#!/bin/sh
|
||||
|
||||
usage() {
|
||||
if [ -n "$1" ]; then
|
||||
echo ""
|
||||
echo -e "${CRED}$1${CEND}\n"
|
||||
fi
|
||||
if [ -n "$1" ]; then
|
||||
echo ""
|
||||
echo -e "${CRED}$1${CEND}\n"
|
||||
fi
|
||||
|
||||
echo "Applies all settings stored in the script's directory to your home directory"
|
||||
echo ""
|
||||
echo "Usage: $0 [-q|--quiet] [-l|--create-links]"
|
||||
echo " -q, --quiet No screen outputs"
|
||||
echo " -l, --create-links Creates soft-links to files in the current directory instead of copying them"
|
||||
echo "Applies all settings stored in the script's directory to your home directory"
|
||||
echo ""
|
||||
echo "Usage: $0 [-q|--quiet] [-l|--create-links]"
|
||||
echo " -q, --quiet No screen outputs"
|
||||
echo " -l, --create-links Creates soft-links to files in the current directory instead of copying them"
|
||||
|
||||
echo ""
|
||||
echo "Example: $0 -q --create-links"
|
||||
echo ""
|
||||
echo "Example: $0 -q --create-links"
|
||||
}
|
||||
|
||||
##################################
|
||||
@@ -25,26 +25,26 @@ QUIET="n"
|
||||
CREATE_LINKS="n"
|
||||
|
||||
while [[ "${#}" -gt 0 ]]; do
|
||||
case $1 in
|
||||
-q | --quiet)
|
||||
QUIET="y"
|
||||
shift
|
||||
;;
|
||||
-l | --create-links)
|
||||
CREATE_LINKS="y"
|
||||
shift
|
||||
;;
|
||||
-h | --help)
|
||||
echo
|
||||
usage
|
||||
echo
|
||||
exit 0
|
||||
;;
|
||||
*)
|
||||
usage "Unknown parameter passed: $1" "h"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
case $1 in
|
||||
-q | --quiet)
|
||||
QUIET="y"
|
||||
shift
|
||||
;;
|
||||
-l | --create-links)
|
||||
CREATE_LINKS="y"
|
||||
shift
|
||||
;;
|
||||
-h | --help)
|
||||
echo
|
||||
usage
|
||||
echo
|
||||
exit 0
|
||||
;;
|
||||
*)
|
||||
usage "Unknown parameter passed: $1" "h"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
main() {
|
||||
|
||||
Reference in New Issue
Block a user