Skip to content

Commit

Permalink
moves some things around
Browse files Browse the repository at this point in the history
  • Loading branch information
tisba committed Oct 10, 2024
1 parent 9575e7a commit 2558927
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 16 deletions.
13 changes: 4 additions & 9 deletions etc/zshrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# FIXME: Workaround for broken git info display
# See https://github.com/ohmyzsh/ohmyzsh/issues/12328
zstyle ':omz:alpha:lib:git' async-prompt no
# NOTE: Workaround for broken async git promt display.
# See https://github.com/ohmyzsh/ohmyzsh/issues/12328
zstyle ':omz:alpha:lib:git' async-prompt force

export DOTFILES="$HOME/.dotfiles"

Expand Down Expand Up @@ -113,12 +113,7 @@ else
export EDITOR='subl -w'
fi

# Prefixing prompt with profile when $AWS_VAULT is set
# TODO: How to move that into a better place? Like dev-related
if [[ -n $AWS_VAULT ]]; then
export PROMPT="[AWS@${AWS_VAULT}] ${PROMPT}"
fi

# Load homebrew provided zsh completions
if type brew &>/dev/null
then
FPATH="$(brew --prefix)/share/zsh/site-functions:${FPATH}"
Expand Down
17 changes: 10 additions & 7 deletions omz-custom/development.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@ if [ -e "/Applications/Visual Studio Code.app" ]; then
export PATH="/Applications/Visual Studio Code.app/Contents/Resources/app/bin":$PATH
fi

export PATH="$HOME/.local/bin":$PATH
export PATH="$HOME/.docker/bin":$PATH

# Erlang
export ERL_AFLAGS="-kernel shell_history enabled"
# Prefixing prompt with profile when $AWS_VAULT is set
if [[ -n $AWS_VAULT ]]; then
export PROMPT="[AWS@${AWS_VAULT}] ${PROMPT}"
fi

# Networking
whoseport() { sudo lsof -i "TCP:$1" | grep LISTEN }
Expand All @@ -22,10 +21,14 @@ command -v mcfly > /dev/null && {
eval "$(mcfly init zsh)"
}

gisw(){
git branch --no-color --sort=-committerdate --format='%(refname:short)' | fzf --header 'git checkout' | xargs git checkout
# gpick shows a list of branches, sorted by last commit date, and checks out the selected branch
gpick(){
git branch --no-color --sort=-committerdate --format='%(refname:short)' | fzf --header 'git switch' | xargs git switch
}

# Erlang
export ERL_AFLAGS="-kernel shell_history enabled"

# Setup pyenv, if installed
command -v pyenv > /dev/null && {
export PYENV_ROOT="$HOME/.pyenv"
Expand Down

0 comments on commit 2558927

Please sign in to comment.