Skip to content

Commit d4e8151

Browse files
committed
update: the HIST command indexer file location
1 parent dd7f73e commit d4e8151

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.vscode/.zshrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ setopt histignorealldups
187187
setopt EXTENDED_HISTORY # with timestamp
188188
fc -R -I ${OLD_HISTFILE} # loading the old histfile
189189

190-
if [[ "$HIST_COMMAND_INDEXER" != ""]]; then
190+
if [[ "$HIST_COMMAND_INDEXER" != "" ]]; then
191191
if [[ ! -f ${HIST_COMMAND_INDEXER} ]]; then
192192
echo "HIST_COMMAND_INDEXER file not found: ${HIST_COMMAND_INDEXER}"
193193
echo "Please set HIST_COMMAND_INDEXER in .vscode/env.zsh"

launch_helper.zsh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
weapon_vscode_launch_helper () {
2-
if [ -f "/opt/weapon/zsh_history" ]; then
3-
export HIST_COMMAND_INDEXER="/opt/weapon/zsh_history"
2+
if [ -f ~/.local/weapon/zsh_history ]; then
3+
export HIST_COMMAND_INDEXER=~/.local/weapon/zsh_history
44
fi
55
if [ -n "$PROJECT_FOLDER" ]; then
66
if [ -f "$PROJECT_FOLDER/.vscode/.zshrc" ]; then

0 commit comments

Comments
 (0)