Skip to content

Commit

Permalink
adjust mac-specific configuration for wsl
Browse files Browse the repository at this point in the history
  • Loading branch information
jenbroek committed Mar 9, 2024
1 parent 0142752 commit 67a98f9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 18 deletions.
5 changes: 3 additions & 2 deletions templates/.bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@

eval "$(mise activate bash)"

. "$HOMEBREW_PREFIX/etc/profile.d/bash_completion.sh"
. "$HOMEBREW_PREFIX/etc/bash_completion.d/git-completion.bash"
. /etc/profile.d/bash_completion.sh
. /usr/share/bash-completion/completions/git
. /usr/share/bash-completion/completions/kubectl

__git_complete g __git_main
complete -o default -F __start_kubectl k
Expand Down
12 changes: 7 additions & 5 deletions templates/.config/alacritty/alacritty.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import = [ "~/.config/alacritty/schemes/orangetree.toml" ]
import = [ "~/AppData/Roaming/alacritty/schemes/orangetree.toml" ]

[window]
dimensions = { columns = 120, lines = 30 }
dimensions = { columns = 113, lines = 25 }
padding = { x = 20, y = 20 }

[scrolling]
history = 100000

[font]
normal = { family = "Cascadia Code PL", style = "SemiBold" }
size = 14.0
size = 9.5
offset.y = 2
glyph_offset.y = 1

Expand All @@ -19,8 +19,10 @@ draw_bold_text_with_bright_colors = true
[selection]
save_to_clipboard = true

[shell]
program = "wsl.exe"

[keyboard]
bindings = [
{ key = "T", mods = "Command", action = "CreateNewWindow" },
{ key = "Return", mods = "Command", action = "ToggleFullscreen" },
{ key = "T", mods = "Control", action = "CreateNewWindow" }
]
12 changes: 1 addition & 11 deletions templates/.profile
Original file line number Diff line number Diff line change
@@ -1,14 +1,4 @@
eval "$(/opt/homebrew/bin/brew shellenv)"

coreutils=$(brew --prefix coreutils)/libexec/gnubin
export GOPATH="$HOME/.go"
export PATH="$HOME/bin:$HOME/.local/bin:$GOPATH/bin:$HOME/.dotnet/tools:$coreutils:$PATH"
export MANPATH="$coreutils:$MANPATH"

export GOROOT="$(brew --prefix go)/libexec"
export DOTNET_ROOT="$(brew --prefix dotnet)/libexec"

export TESTCONTAINERS_DOCKER_SOCKET_OVERRIDE=/var/run/docker.sock
export DOCKER_HOST="unix://$HOME/.colima/default/docker.sock"
export PATH="$HOME/bin:$HOME/.local/bin:$GOPATH/bin:$PATH"

export ENV="$HOME/.shrc"

0 comments on commit 67a98f9

Please sign in to comment.