Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ function settitle () {
# and "git open" are exceptions present in this environment so
# handle them as well. If there is no match just use the first
# command launched and show it in title.
if [[ "${CURRENT_COMMAND}" == "${EDITOR}"* || \
if [[ "${CURRENT_COMMAND}" == "${EDITOR:-xxxxxxxx}"* || \
"${CURRENT_COMMAND}" == "git open"* || \
"${CURRENT_COMMAND}" == "git-open"* ]]; then
# Get the last part of the file defined here. We only
Expand Down Expand Up @@ -206,3 +206,8 @@ fi
if [ -f "$HOME_CWD" ]; then
cd "$(< ${HOME}/.cwd)"
fi

# Create directory if it doesn't exist
if ! [ -d "$HOME_GIT" ]; then
mkdir -vp $HOME_GIT
fi