Compare commits

...

33 Commits

Author SHA1 Message Date
0d91e6b9a3 fix: pull and link repos if homeshick already installed 2024-05-20 05:29:25 +00:00
27f17bd99b fix: guarded homeshick install in an if statement 2024-05-20 05:07:43 +00:00
96e668cc93 feat: added homebrew and asdf 2024-05-20 05:05:02 +00:00
66d3c77e18 feat: added clear and fastfetch to end of bashrc 2024-05-18 20:12:21 +00:00
f59d3761ce feat: added clear and then fastfetch to powershell profile 2024-05-18 20:10:31 +00:00
176431662a feat: Added git config for devops_mad 2024-05-10 22:43:21 +00:00
2790b09398 update starship config 2024-05-10 17:52:02 +00:00
c0a1d779e1 Update starship config 2024-05-10 17:48:49 +00:00
6dfbcd3d96 update starship config 2024-05-10 17:40:46 +00:00
e9bdbba3bd updated starship config 2024-05-10 17:39:53 +00:00
4b40cecfb5 updated starship config 2024-05-10 17:39:02 +00:00
79e7caf9ea updated starship config 2024-05-10 17:37:09 +00:00
02d7f3c525 feat: changed starship config 2024-05-10 17:35:37 +00:00
599583f2cd fix: added space to error starship config to prevent clipping 2024-05-10 17:14:22 +00:00
d1f44979da fix: removed extra spaces from shell module of starship config 2024-05-10 17:10:41 +00:00
a020539f8a fix: added other versions of tooling for dotfiles based on initing script 2024-05-10 17:01:31 +00:00
540f2b2397 feat: added WindowsPowershell profile 2024-05-10 16:53:29 +00:00
28b739cf9f fix: escaped end of prompt new line in starship config 2024-05-10 16:50:04 +00:00
2df3519882 fix: fixed spelling error in starship config 2024-05-10 16:47:22 +00:00
0d0e4ca711 fix: added missing = to starship config 2024-05-10 16:44:17 +00:00
7415eee565 feat: Added Shlell module to prompt 2024-05-10 16:42:58 +00:00
53d928df4a fix: Moved clink starship.lua into right folder 2024-05-09 17:30:31 +00:00
310e18fe23 feat: added CMD starship init 2024-05-09 17:24:38 +00:00
76eae16e50 fix: correct git check to break in init.ps1 2024-05-08 16:48:38 +00:00
94ce23b1b8 fix: Added missing break in git check of init.ps1 2024-05-07 20:39:29 +00:00
7fb480d34b feat: Removed Windows Terminal Settings.json 2024-05-07 16:08:58 +00:00
2fb12e8d0f fix: another init.ps1 fix 2024-05-07 07:54:32 +00:00
74a6bbcfb2 fix: init.ps1 fix 2024-05-07 07:53:49 +00:00
37256639a9 fix: fix in init.ps1 2024-05-07 07:52:22 +00:00
629301ef70 fix: Fixed linux paths in init.ps1 2024-05-07 07:51:00 +00:00
bd1cd924ce fix: Fixed import-module in powershell profile and init.ps1 2024-05-07 07:45:59 +00:00
e90e0a023f style: Added comments 2024-05-07 07:42:41 +00:00
541a3b28cf feat: Added init.ps1 as well as powershell config files 2024-05-07 07:35:08 +00:00
12 changed files with 231 additions and 15 deletions

View File

@ -2,6 +2,12 @@
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# Update the PATH
[ -d /usr/local/bin ] && PATH="/usr/local/bin:$PATH"
[ -d /opt/homebrew/bin ] && PATH="/opt/homebrew/bin:$PATH"
[ -d /home/linuxbrew/.linuxbrew/bin ] && PATH="/home/linuxbrew/.linuxbrew/bin:$PATH"
eval $(brew shellenv)
# If not running interactively, don't do anything
case $- in
*i*) ;;
@ -129,3 +135,7 @@ eval "$(starship init bash)"
HISTSIZE=100000
HISTFILESIZE=200000
SAVEHIST=100000
clear
fastfetch

80
home/.config/Brewfile Normal file
View File

@ -0,0 +1,80 @@
# Yay
tap 'homebrew/services'
## Upgrades & Overlays
brew 'bat'
brew 'btop'
brew 'curl'
brew 'eza'
brew 'fd'
brew 'fish'
# brew 'gawk'
brew 'httpie'
# brew 'mosh'
brew 'openssh'
brew 'ripgrep'
brew 'rsync'
# brew 'tmux'
brew 'watch'
brew 'wget'
brew 'whois'
brew 'zoxide'
## Fun stuff
brew 'fastfetch'
brew 'ffmpeg'
brew 'ffmpegthumbnailer'
brew 'fzf'
brew 'handbrake'
# brew 'hugo'
# brew 'imagemagick'
# brew 'marp-cli' # slides
# brew 'poppler' # pdf tools
# brew 'qpdf' # moar pdf
# brew 'tintin'
# brew 'tlrc'
# brew 'trash-cli'
brew 'unar'
brew 'yazi'
# brew 'yt-dlp'
## Dev Tooling
brew 'cmake' # neovim build needs
brew 'direnv'
# brew 'entr'
brew 'gh'
brew 'git'
brew 'git-lfs'
brew 'git-standup'
# brew 'go'
# brew 'golangci-lint'
brew 'jq'
# brew 'libpq'
brew 'neovim'
# brew 'overmind'
brew 'pipx'
tap 'jesseduffield/lazygit'
brew 'jesseduffield/lazygit/lazygit'
## Ops Tooling
brew 'dive'
brew 'gnupg'
brew 'nmap'
# brew 'qrencode'
# brew 'wireguard-tools'
# tap 'hashicorp/tap'
# brew 'hashicorp/tap/terraform'
tap 'jesseduffield/lazydocker'
brew 'jesseduffield/lazydocker/lazydocker'
## MAS time
brew 'mas'

View File

@ -0,0 +1 @@
../../Documents/PowerShell/Microsoft.PowerShell_profile.ps1

View File

@ -25,8 +25,9 @@ $docker_context\
[](fg:#ff0080 bg:#47225e)\
$status\
$time\
[ ](fg:#47225e)\
\r\n[󰫍 ](fg:#00ffff)\
[](fg:#47225e)\
\r\n\
$shell\
"""
# Disable the blank line at the start of the prompt
@ -149,8 +150,18 @@ format = '[ $time ]($style)'
[status]
style = 'bg:#47225e'
symbol = '🔴'
success_symbol = '🟢'
format = '[ $symbol$common_meaning$signal_name$maybe_int ]($style)'
symbol = '[](fg:#ff0000 bg:#47225e)'
success_symbol = '[󰗡](fg:#009900 bg:#47225e)'
format = '[ $symbol$common_meaning$signal_name$maybe_int]($style)'
map_symbol = true
disabled = false
[shell]
fish_indicator = ''
powershell_indicator = '󰨊'
pwsh_indicator = ''
cmd_indicator = ''
bash_indicator = '󱆃'
unknown_indicator = ''
style = '(fg:#00ffff)'
disabled = false

17
home/.gitconfig Normal file
View File

@ -0,0 +1,17 @@
[credential]
helper = store
[user]
name = Kitty
email = kat@firekitten.net
# include for public github
[includeIf "gitdir:~/source/github_personal/"]
path = ~/source/github_personal/.gitconfig
# include for mad github
[includeIf "gitdir:~/source/github_mad/"]
path = ~/source/github_mad/.gitconfig
# include for mad github
[includeIf "gitdir:~/source/devops_mad/"]
path = ~/source/devops_mad/.gitconfig

View File

@ -0,0 +1 @@
load(io.popen('starship init cmd'):read("*a"))()

View File

@ -0,0 +1,18 @@
## Load Homepsick
Import-Module -Name "$([IO.Path]::Combine($home, ".homesick", "repos", "homepsick", "src", "Homepsick.psm1"))" -Force
## Update my Homepsick repos
Update-HomepsickCastle -All
## Link everything
Enable-HomepsickCastle -All
## Load Starship Prompt
Invoke-Expression (&starship init powershell)
## Load Terminal Icons
Import-Module -Name Terminal-Icons
Clear-Host
fastfetch

View File

@ -0,0 +1 @@
../../Documents/PowerShell/Microsoft.PowerShell_profile.ps1

View File

@ -0,0 +1,3 @@
[user]
name = kfordmad
email = 118647736+kfordmad@users.noreply.github.com

View File

@ -0,0 +1,3 @@
[user]
name = KitKat31337
email = 4126578+KitKat31337@users.noreply.github.com

34
init.ps1 Normal file
View File

@ -0,0 +1,34 @@
# This file and this entire repo began modeled after https://github.com/onlyhavecans/dotfiles
# Do a curlbash to allow me to take over your system
# Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://stash.firekitten.net/kittyfangs/dotfiles/raw/branch/main/init.ps1'))
## Make sure we have git
if ((Get-Command -Type Application -ErrorAction SilentlyContinue git) -eq $null)
{
winget install git.git -h
}
## Install homepshick
## if ($IsWindows) { $home = $env:USERPROFILE }
git clone https://github.com/KitKat31337/homepsick.git "$([IO.Path]::Combine($home, ".homesick", "repos", "homepsick"))"
Import-Module -Name "$([IO.Path]::Combine($home, ".homesick", "repos", "homepsick", "src", "Homepsick.psm1"))" -Force
## clone home
New-HomepsickCastle -Clone -GitUrl https://stash.firekitten.net/kittyfangs/dotfiles.git
## git -C "$home/.homesick/repos/dotfiles" remote set-url origin git@stash.firekitten.net:kittyfangs/dotfiles
## Lets get the bash version since we are initing in powershell
New-HomepsickCastle -Clone -GitUrl https://github.com/andsens/homeshick.git
## Link everything
Enable-HomepsickCastle -All -Force
# Install Terminal-Icons Module
Install-Module -Name Terminal-Icons -Force
# Install Starship (Will prompt for admin)
winget install starship -f
# Init Starship
Invoke-Expression (&starship init powershell)

57
init.sh
View File

@ -15,18 +15,55 @@ for app in git curl; do
done
## Install homeshick
git clone https://github.com/andsens/homeshick.git "$HOME/.homesick/repos/homeshick"
# shellcheck source=/dev/null
source "$HOME/.homesick/repos/homeshick/homeshick.sh"
source $HOME/.homesick/repos/homeshick/completions/homeshick-completion.bash
if [[ ! -d $HOME/.homesick ]]; then
git clone https://github.com/andsens/homeshick.git "$HOME/.homesick/repos/homeshick"
# shellcheck source=/dev/null
source "$HOME/.homesick/repos/homeshick/homeshick.sh"
source $HOME/.homesick/repos/homeshick/completions/homeshick-completion.bash
## clone home, then set it to ssh afterwards
## This means we need our keys before we can make further actions - disable the ssh behavior for now
homeshick --batch clone https://stash.firekitten.net/kittyfangs/dotfiles.git
## git -C "$HOME/.homesick/repos/dotfiles" remote set-url origin git@stash.firekitten.net:kittyfangs/dotfiles
## clone home, then set it to ssh afterwards
## This means we need our keys before we can make further actions - disable the ssh behavior for now
homeshick --batch clone https://stash.firekitten.net/kittyfangs/dotfiles.git
## git -C "$HOME/.homesick/repos/dotfiles" remote set-url origin git@stash.firekitten.net:kittyfangs/dotfiles
## Link everything
homeshick link --force
## Lets get the powerhsell version since we are initing in bash
homeshick --batch clone https://github.com/KitKat31337/homepsick.git
## Link everything
homeshick link --force
else
## Update the repos
if ! command -v homeshick &>/dev/null; then
source "$HOME/.homesick/repos/homeshick/homeshick.sh"
source $HOME/.homesick/repos/homeshick/completions/homeshick-completion.bash
fi
homeshick pull
homeshick link
fi
if ! command -v brew &>/dev/null; then
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
[ -d /usr/local/bin ] && PATH="/usr/local/bin:$PATH"
[ -d /opt/homebrew/bin ] && PATH="/opt/homebrew/bin:$PATH"
[ -d /home/linuxbrew/.linuxbrew/bin ] && PATH="/home/linuxbrew/.linuxbrew/bin:$PATH"
eval $(brew shellenv)
brew bundle install --file=~/.config/Brewfile
fi
## All my asdf
# if [[ ! -d $HOME/.asdf ]]; then
# git clone https://github.com/asdf-vm/asdf.git ~/.asdf
# git -C ~/.asdf checkout "$(git -C ~/.asdf describe --abbrev=0 --tags)"
# # shellcheck source=/dev/null
# source "$HOME/.asdf/asdf.sh"
# asdf plugin-add python
# asdf install python latest
# asdf global python latest
# fi
# Init Starship
eval "$(starship init bash)"