Skip to content

Instantly share code, notes, and snippets.

@martinbuberl
martinbuberl / .zshrc
Last active December 2, 2024 13:35
Latest .zshrc profile file
printf "\33c\e[3J" # clear terminal (removes "Last login" message)
echo ".zshrc loaded ..."
# Homebrew
eval "$(/opt/homebrew/bin/brew shellenv)" # add Homebrew to $PATH
# enables tab completion for Terraform
# usually the command "terraform -install-autocomplete" adds the following lines,
# but on Apple Silicon it errored with "complete:13: command not found: compdef";
# the workaround is to also add the line "autoload -U +X compinit && compinit";
@martinbuberl
martinbuberl / git-import-repository.md
Last active August 28, 2024 14:46
Import existing Git repository into another

Import existing Git repository into another

Folder structure before (2 separate repositories):

XXX
 |- .git
 |- (project files)
YYY
 |- .git