diff --git a/src/init/starship.bash b/src/init/starship.bash index f7bd2d9d..a51b7c2d 100644 --- a/src/init/starship.bash +++ b/src/init/starship.bash @@ -86,4 +86,6 @@ STARSHIP_START_TIME=$(::STARSHIP:: time) export STARSHIP_SHELL="bash" # Set up the session key that will be used to store logs -export STARSHIP_SESSION_KEY=$(::STARSHIP:: session) +STARSHIP_SESSION_KEY="$RANDOM$RANDOM$RANDOM$RANDOM$RANDOM"; # Random generates a number b/w 0 - 32767 +STARSHIP_SESSION_KEY="${STARSHIP_SESSION_KEY}0000000000000000" # Pad it to 16+ chars. +export STARSHIP_SESSION_KEY=${STARSHIP_SESSION_KEY:0:16}; # Trim to 16-digits if excess. diff --git a/src/init/starship.zsh b/src/init/starship.zsh index a01844bd..0c25121a 100644 --- a/src/init/starship.zsh +++ b/src/init/starship.zsh @@ -78,4 +78,6 @@ STARSHIP_START_TIME=$(::STARSHIP:: time) export STARSHIP_SHELL="zsh" # Set up the session key that will be used to store logs -export STARSHIP_SESSION_KEY=$(::STARSHIP:: session) +STARSHIP_SESSION_KEY="$RANDOM$RANDOM$RANDOM$RANDOM$RANDOM"; # Random generates a number b/w 0 - 32767 +STARSHIP_SESSION_KEY="${STARSHIP_SESSION_KEY}0000000000000000" # Pad it to 16+ chars. +export STARSHIP_SESSION_KEY=${STARSHIP_SESSION_KEY:0:16}; # Trim to 16-digits if excess.