Skip to content

Commit

Permalink
Set dir name in terminal window
Browse files Browse the repository at this point in the history
  • Loading branch information
kachick committed Jan 18, 2023
1 parent e1b7e4b commit 8a9e6e9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .config/.bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,11 @@ fi

eval "$(starship init bash)"

# https://github.com/starship/starship/blob/0d98c4c0b7999f5a8bd6e7db68fd27b0696b3bef/docs/uk-UA/advanced-config/README.md#change-window-title
function set_win_title() {
echo -ne "\033]0; $(basename "$PWD") \007"
}
# shellcheck disable=SC2034
starship_precmd_user_func="set_win_title"

. ~/.aliases.sh
8 changes: 7 additions & 1 deletion .config/.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,16 @@ esac

eval "$(starship init zsh)"

# https://github.com/starship/starship/blob/0d98c4c0b7999f5a8bd6e7db68fd27b0696b3bef/docs/uk-UA/advanced-config/README.md#change-window-title
function set_win_title(){
echo -ne "\033]0; $(basename "$PWD") \007"
}
precmd_functions+=(set_win_title)

# For Crystal with libssl issue. ref: https://github.com/kachick/times_kachick/issues/188
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:$(brew --prefix openssl@3)/lib/pkgconfig"


eval "$(direnv hook zsh)"

[ -f "/home/kachick/.ghcup/env" ] && source "/home/kachick/.ghcup/env" # ghcup-env
[ -f "/home/kachick/.ghcup/env" ] && source "/home/kachick/.ghcup/env" # ghcup-env

0 comments on commit 8a9e6e9

Please sign in to comment.