mirror of
https://github.com/atuinsh/atuin.git
synced 2025-07-01 07:00:54 +02:00
Don't pollute shell environment - remove 'id' variable (#408)
This commit is contained in:
@ -2,7 +2,7 @@ ATUIN_SESSION=$(atuin uuid)
|
|||||||
export ATUIN_SESSION
|
export ATUIN_SESSION
|
||||||
|
|
||||||
_atuin_preexec() {
|
_atuin_preexec() {
|
||||||
id=$(atuin history start "$1")
|
local id; id=$(atuin history start "$1")
|
||||||
export ATUIN_HISTORY_ID="$id"
|
export ATUIN_HISTORY_ID="$id"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ export ATUIN_SESSION=$(atuin uuid)
|
|||||||
export ATUIN_HISTORY="atuin history list"
|
export ATUIN_HISTORY="atuin history list"
|
||||||
|
|
||||||
_atuin_preexec(){
|
_atuin_preexec(){
|
||||||
id=$(atuin history start "$1")
|
local id; id=$(atuin history start "$1")
|
||||||
export ATUIN_HISTORY_ID="$id"
|
export ATUIN_HISTORY_ID="$id"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user