Skip to content

Commit

Permalink
updated config
Browse files Browse the repository at this point in the history
  • Loading branch information
pgaijin66 committed Mar 5, 2024
1 parent d2fe94e commit 519d5ee
Show file tree
Hide file tree
Showing 17 changed files with 36 additions and 166 deletions.
Binary file added .DS_Store
Binary file not shown.
10 changes: 0 additions & 10 deletions Taskfile.yaml

This file was deleted.

46 changes: 32 additions & 14 deletions bootstrap.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,12 @@ function install_brew {
if [[ ! $exists ]]; then
echo "No brew installation found, installing..."
runcmd /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
runcmd brew update && brew upgrade
else
echo "brew is installed, nothing to do here..."
fi
}

# Function to install yabai
function install_yabai {
runcmd brew install koekeishiya/formulae/yabai
runcmd yabai --start-service
}

# Function to install skhd
function install_skhd {
runcmd brew install koekeishiya/formulae/skhd
Expand All @@ -46,9 +41,8 @@ function install_ansible {

# Function to install Python
function install_python {
runcmd brew install python3
runcmd curl -O https://bootstrap.pypa.io/get-pip.py
sudo python3 get-pip.py
runcmd brew install [email protected]
runcmd /bin/bash -c "curl -O https://bootstrap.pypa.io/get-pip.py"
}

# Function to install various packages
Expand All @@ -62,12 +56,24 @@ function install_packages {
fzf \
go-task \
tree \
exa \
nvm \
xz \
go \
openjdk \
tfenv \
helm \
helmfile \
kubectx \
kubectl \
sops \
docker \
docker-compose \
colima \
docker-credential-helper \
aylei/tap/kubectl-debug \
git-delta \
git-absorb \
shellcheck \
awscli \
hadolint \
aquasecurity/trivy/trivy \
figlet \
Expand All @@ -77,13 +83,17 @@ function install_packages {
ansible \
derailed/k9s/k9s

# runcmd "$(curl -L https://sw.kovidgoyal.net/kitty/installer.sh | sh /dev/stdin)"
}

# Function to install Terraform
function install_kitty {
runcmd /bin/bash -c "$(curl -fsSL https://sw.kovidgoyal.net/kitty/installer.sh)"
}

# Function to install Terraform
function install_terraform {
runcmd brew tap hashicorp/tap
runcmd hashicorp/tap/terraform
runcmd brew install hashicorp/tap/terraform
}

# Function to set up dotfiles
Expand Down Expand Up @@ -129,10 +139,15 @@ function setup_config_files {
install_brew
install_packages
install_skhd
# install_kitty
install_terraform
install_python
install_ansible


# Additional setup steps
setup_dotfiles
setup_directories
# setup_directories
setup_config_files


Expand All @@ -143,3 +158,6 @@ setup_config_files
# runcmd skhd --restart-service
# runcmd yabai --restart-service
# }


echo "completed"
2 changes: 1 addition & 1 deletion git/gitconfig
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[user]
signingkey = 9BD85959AC85D213
signingkey = 2F1EE7CDC451C403
name = Prabesh Thapa
email = [email protected]
[commit]
Expand Down
7 changes: 0 additions & 7 deletions playbooks/apply-base-config.yaml

This file was deleted.

38 changes: 0 additions & 38 deletions roles/base-config/README.md

This file was deleted.

2 changes: 0 additions & 2 deletions roles/base-config/defaults/main.yml

This file was deleted.

2 changes: 0 additions & 2 deletions roles/base-config/handlers/main.yml

This file was deleted.

52 changes: 0 additions & 52 deletions roles/base-config/meta/main.yml

This file was deleted.

25 changes: 0 additions & 25 deletions roles/base-config/tasks/install-packages.yml

This file was deleted.

3 changes: 0 additions & 3 deletions roles/base-config/tasks/main.yml

This file was deleted.

Empty file.
Empty file.
2 changes: 0 additions & 2 deletions roles/base-config/tests/inventory

This file was deleted.

5 changes: 0 additions & 5 deletions roles/base-config/tests/test.yml

This file was deleted.

2 changes: 0 additions & 2 deletions roles/base-config/vars/main.yml

This file was deleted.

6 changes: 3 additions & 3 deletions zsh/zshrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
export GOROOT=/usr/local/go
export GOROOT=/opt/homebrew/bin/go

export PATH=$HOME/bin:$GOROOT/bin:$PATH

Expand Down Expand Up @@ -49,8 +49,8 @@ alias ddown='docker-compose down'
alias lll='ls -lahtr'
alias grep2="grep -v '^\s*$\|^\s*\#' $1"
alias cls="clear"
alias pd="cd ~/src/personal/github"
alias wd="cd ~/src/work/github"
alias pd="cd ~/work"
alias wd="cd ~/personal"
alias c="clear"

# Check internet and dns
Expand Down

0 comments on commit 519d5ee

Please sign in to comment.