mirror of
https://github.com/Gu1llaum-3/sshm.git
synced 2025-09-07 13:20:40 +02:00
Feature: display context in sshm list only when not default
This commit is contained in:
parent
a150c0fee1
commit
e2b1ba6e23
@ -104,6 +104,12 @@ sshm_list() {
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Display context name if not default
|
||||||
|
if [[ "$SSHM_CONTEXT" != "$DEFAULT_CONFIG" ]]; then
|
||||||
|
local context_name=$(basename "$SSHM_CONTEXT")
|
||||||
|
echo -e "\n${BLUE}${BOLD}Context: ${NC}${context_name}"
|
||||||
|
fi
|
||||||
|
|
||||||
echo -e "\n${BLUE}${BOLD}List of SSH hosts:${NC}"
|
echo -e "\n${BLUE}${BOLD}List of SSH hosts:${NC}"
|
||||||
|
|
||||||
# Create a temporary file to store results
|
# Create a temporary file to store results
|
||||||
|
Loading…
x
Reference in New Issue
Block a user