Compare commits
3 Commits
7be3e952fc
...
cf94ba2e4b
Author | SHA1 | Date | |
---|---|---|---|
cf94ba2e4b | |||
594200f88d | |||
a0421469c0 |
|
@ -35,7 +35,7 @@ HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_FOUND="fg=yellow"
|
|||
HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_NOT_FOUND="fg=red"
|
||||
HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_TIMEOUT=3
|
||||
|
||||
VI_MODE_RESET_PROMT_ON_MODE_CHANGE=true
|
||||
VI_MODE_RESET_PROMPT_ON_MODE_CHANGE=true
|
||||
VI_MODE_SET_CURSOR=true
|
||||
# Might cause issues?
|
||||
KEYTIMEOUT=1
|
||||
|
@ -53,3 +53,30 @@ export EDITOR=nvim
|
|||
# export GREP_COLORS="mt=01;32"
|
||||
|
||||
alias cl="clear"
|
||||
|
||||
if hash devcontainer 2>/dev/null; then
|
||||
dc() {
|
||||
ORIG_DIR="$PWD"
|
||||
while [[ "$PWD" != / ]] ; do
|
||||
if find "$PWD"/ -maxdepth 1 -type d -name ".devcontainer" | grep -q ".devcontainer"; then
|
||||
WORKSPACE_FOLDER="$PWD"
|
||||
builtin cd "$ORIG_DIR"
|
||||
devcontainer exec --workspace-folder "$WORKSPACE_FOLDER" $@
|
||||
return 0
|
||||
else
|
||||
builtin cd ..
|
||||
fi
|
||||
done
|
||||
builtin cd "$ORIG_DIR"
|
||||
echo "Unable to find workspace folder"
|
||||
return 1
|
||||
}
|
||||
fi
|
||||
|
||||
if hash pnpm 2>/dev/null; then
|
||||
export PNPM_HOME="/home/tim/.local/share/pnpm"
|
||||
case ":$PATH:" in
|
||||
*":$PNPM_HOME:"*) ;;
|
||||
*) export PATH="$PNPM_HOME:$PATH" ;;
|
||||
esac
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue
Block a user