diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 00000000..6a0c4a6a Binary files /dev/null and b/.DS_Store differ diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 00000000..1af14d0f --- /dev/null +++ b/.gitmodules @@ -0,0 +1,4 @@ +[submodule "dotbot"] + path = dotbot + url = https://github.com/anishathalye/dotbot + ignore = dirty diff --git a/alacritty/.config/alacritty/alacritty-base.toml b/alacritty/alacritty-base.toml similarity index 100% rename from alacritty/.config/alacritty/alacritty-base.toml rename to alacritty/alacritty-base.toml diff --git a/alacritty/.config/alacritty/alacritty-linux.toml b/alacritty/alacritty-linux.toml similarity index 100% rename from alacritty/.config/alacritty/alacritty-linux.toml rename to alacritty/alacritty-linux.toml diff --git a/alacritty/.config/alacritty/alacritty-osx.toml b/alacritty/alacritty-osx.toml similarity index 100% rename from alacritty/.config/alacritty/alacritty-osx.toml rename to alacritty/alacritty-osx.toml diff --git a/alacritty/.config/alacritty/alacritty.toml b/alacritty/alacritty.toml similarity index 85% rename from alacritty/.config/alacritty/alacritty.toml rename to alacritty/alacritty.toml index 542daf2e..8b278be0 100644 --- a/alacritty/.config/alacritty/alacritty.toml +++ b/alacritty/alacritty.toml @@ -6,20 +6,11 @@ import = [ live_config_reload = true -# ipc_socket = true | false # (unix only) -# Offer IPC using alacritty msg -# Default: true - -# ipc_socket = true - - - - # ENV [env] -#TERM = "xterm-256color" -TERM = "alacritty" +TERM = "xterm-256color" +#TERM = "alacritty" @@ -27,14 +18,13 @@ TERM = "alacritty" [window] startup_mode = "Windowed" -title = "eTerm" dynamic_title = true dynamic_padding = true decorations = "Full" decorations_theme_variant = "Dark" opacity = 0.8 blur = true -dimensions = { columns = 160, lines = 45 } +dimensions = { columns = 180, lines = 60 } @@ -48,7 +38,7 @@ multiplier = 3 # FONT [font] normal = { family = "Hack Nerd Font Mono" } -size = 13 +size = 15 builtin_box_drawing = true @@ -510,64 +500,15 @@ hide_when_typing = false # Example: -# [keyboard] -# bindings = [ -# { key = "N", mods = "Control|Shift", action = "CreateNewWindow" }, -# { key = "L", mods = "Control|Shift", chars = "l" }, -# ] +[keyboard] +bindings = [ +{ key = "N", mods = "Control|Shift", action = "CreateNewWindow" }, +{ key = "L", mods = "Control|Shift", chars = "l" }, +] -#[keyboard] - - -# DEBUG -# This section documents the [debug] table of the configuration file. -# Debug options are meant to help troubleshoot issues with Alacritty. These can change or be removed entirely without warning, so their stability shouldn't be relied upon. - -# render_timer = true | false -# Display the time it takes to draw each frame. -# Default: false - -# persistent_logging = true | false -# Keep the log file after quitting Alacritty. -# Default: false -# log_level = "Off" | "Error" | "Warn" | "Info" | "Debug" | "Trace" -# Default: "Warn" - -# To add extra libraries to logging ALACRITTY_EXTRA_LOG_TARGETS variable can be used. -# Example: - -# ALACRITTY_EXTRA_LOG_TARGETS="winit;vte" alacritty -vvv - -# renderer = "glsl3" | "gles2" | "gles2_pure" | "None" -# Force use of a specific renderer, "None" will use the highest available one. -# Default: "None" - -# print_events = true | false -# Log all received window events. -# Default: false - -# highlight_damage = true | false -# Highlight window damage information. -# Default: false - -# prefer_egl = true | false -# Use EGL as display API if the current platform allows it. Note that transparency may not work with EGL on Linux/BSD. -# Default: false - -#[debug] - - -# SEE ALSO -# alacritty(1), alacritty-msg(1), alacritty-bindings(5) - -# BUGS -# Found a bug? Please report it at https://github.com/alacritty/alacritty/issues. - -# MAINTAINERS -# · Christian Duerr -# · Kirill Chibisov [shell] -program="/opt/homebrew/bin/tmux" -args=['new-session', '-A', '-s', 'eMac'] +#program="/opt/homebrew/bin/tmux" +program={{ SHELL }} +args=['new-session', '-A', '-s', 'Tmux'] diff --git a/alacritty/.config/alacritty/themes/catppuccin-latte.toml b/alacritty/themes/catppuccin-latte.toml similarity index 100% rename from alacritty/.config/alacritty/themes/catppuccin-latte.toml rename to alacritty/themes/catppuccin-latte.toml diff --git a/alacritty/.config/alacritty/themes/catppuccin-mocha.toml b/alacritty/themes/catppuccin-mocha.toml similarity index 100% rename from alacritty/.config/alacritty/themes/catppuccin-mocha.toml rename to alacritty/themes/catppuccin-mocha.toml diff --git a/bash/gcommands b/bash/gcommands new file mode 100644 index 00000000..b5af73a1 --- /dev/null +++ b/bash/gcommands @@ -0,0 +1,18 @@ +check_envs(var) { + local command="$2" + + if [[ -z "${!env_var}" ]]; then + read -rp "Enter value for $env_var: " "${env_var}" + export "$env_var=${!env_var}" #Export the variable to be accessible by child processes + fi + + if [[ -n "${!env_var}" ]]; then + eval "$command" + else + echo "Environment variable $env_var is not set. Command not executed." + fi +} + +# Example usage: +# run_with_env MY_API_KEY "curl -H \"Authorization: Bearer $MY_API_KEY\" https://api.example.com" +# run_with_env DATABASE_URL "psql $DATABASE_URL -c 'SELECT * FROM users;'" diff --git a/dotbot b/dotbot new file mode 160000 index 00000000..9cd5d073 --- /dev/null +++ b/dotbot @@ -0,0 +1 @@ +Subproject commit 9cd5d073f2253e24368d8e0e6029b838d2d2222c diff --git a/install b/install new file mode 100755 index 00000000..5a7e72c4 --- /dev/null +++ b/install @@ -0,0 +1,15 @@ +#!/usr/bin/env bash + +set -e + +CONFIG="install.conf.yaml" +DOTBOT_DIR="dotbot" + +DOTBOT_BIN="bin/dotbot" +BASEDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" + +cd "${BASEDIR}" +git -C "${DOTBOT_DIR}" submodule sync --quiet --recursive +git submodule update --init --recursive "${DOTBOT_DIR}" + +"${BASEDIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASEDIR}" -c "${CONFIG}" "${@}" diff --git a/install.conf.yaml b/install.conf.yaml new file mode 100644 index 00000000..adadcdde --- /dev/null +++ b/install.conf.yaml @@ -0,0 +1,29 @@ +- defaults: + link: + relink: true + +- clean: ['~'] +- template: + - ~/.config/alacritty.toml: + source_file: alacritty.toml + params: + shell: John Doe +- link: + ~/.config/alacritty: alacritty + + + ~/.zshrc: zsh/.zshrc + ~/.zprofile: zsh/.zprofile + + ~/.tmux.conf: tmux/.tmux.conf + + ~/.aliasrc: shell/.aliasrc + + + +# - create: +# - ~/downloads +# - ~/.vim/undo-history + +# - shell: +# - [git submodule update --init --recursive, Installing submodules] diff --git a/shell/.aliasrc b/shell/.aliasrc index 8534e06d..10fa131e 100644 --- a/shell/.aliasrc +++ b/shell/.aliasrc @@ -4,7 +4,7 @@ alias_list=( ll='ls -alF' ls='ls -lah --color' grep='grep --color=auto' - vi='nvim' + vi='vim' lpg='cd ~/git/lucidpoint' ppg='cd ~/git/personal' downloads='cd ~/Downloads' diff --git a/zsh/.zshrc b/zsh/.zshrc index bd1165b3..c30d5e55 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -192,4 +192,7 @@ if [ -f '/Users/errol/Downloads/google-cloud-sdk/completion.zsh.inc' ]; then . ' export GOOGLE_APPLICATION_CREDENTIALS=/Users/errol/.config/gcloud/application_default_credentials.json alias gam="/home/errol/bin/gamadv-xtd3/gam" -source <(kubectl completion zsh) +if which kubectl &> /dev/null +then + source <(kubectl completion zsh) +fi