Displaying 8 results from an estimated 8 matches for "sgr0".
Did you mean:
sg0
2025 Jan 10
1
[PATCH] ssh-add: support parser-friendly operation
...heir privkeys into
the agent *with a limited lifetime*, having a trivial, *universal* way
to check whether they have expired by now is an asset.
> workplace$ egrep ' ssh(|add)=' .bashrc
> alias sshadd='( echo -n "`tput dim`" ; ssh-add -c -t 1800 ; echo -n "`tput sgr0`" )'
> alias ssh='ssh-add -l >/dev/null || sshadd ; ssh'
> jumphost$ grep -A 9 '^ssh' .bashrc
> ssh() {
> if [ -z "$SSH_AUTH_SOCK" ]; then
> # No forwarded agent. Someone wants to learn many passwords by heart ...
>...
2011 Apr 19
4
/etc/bashrc help!
...ompt
echo "###############################################"
echo "### You are now working as ROOT. ###"
echo "### Pay attention to what you type. ###"
echo "###############################################"
PS1="\\[$(tput setaf 1)\\]\\u@\\h:\\w #\\[$(tput sgr0)\\]"
else # normal
echo
echo " ###########################################################"
echo "Welcome $(whoami), here's something to start your day with:"
echo
echo `sh /etc/lines.sh /etc/quotes.txt`
echo " ######################################################...
2025 Jan 13
2
[PATCH] ssh-add: support parser-friendly operation
...e*, having a trivial, *universal* way
> > to check whether they have expired by now is an asset.
> >
> > > workplace$ egrep ' ssh(|add)=' .bashrc
> > > alias sshadd='( echo -n "`tput dim`" ; ssh-add -c -t 1800 ; echo -n "`tput
> > > sgr0`" )'
> > > alias ssh='ssh-add -l >/dev/null || sshadd ; ssh'
>
> With my patch v2, that would need to be:
>
> > alias ssh='ssh-add -l | grep -q . || sshadd ; ssh'
>
> ...though the message "The agent has no identities." would be...
2025 Jan 09
2
[PATCH] ssh-add: support parser-friendly operation
On 2025-01-09 15:27, Corey Hickey wrote:
> From: Corey Hickey <chickey at tagged.com>
>
> When ssh-add is used in a script like:
>
> if ! KEY_LISTING=$(ssh-add -l 2>&1) ; then
> echo "SSH agent error" >&2
> exit 2
> fi
>
> ...the operation fails when there is an agent but there are no keys in
> the agent.
2011 Jan 13
3
/etc/bashrc causing probs..
...###############################################"echo "### You are now working as ROOT. ###"echo "### Pay attention to what you type. ###"echo "###############################################" PS1="\\[$(tput setaf 1)\\]\\u@\\h:\\w #\\[$(tput sgr0)\\]"else # nothing to doechoecho " ###########################################################"echo "Welcome $(whoami), here's something to start your day with:"echoecho `sh /etc/lines.sh /etc/quotes.txt`echo " ####################################################...
2020 Sep 29
3
No Samba NT DOMAIN Name found exitting now...
...uot; ]; then
> echo "program tput not found, installing it now.. please wait"
> apt-get update > /dev/null
> apt-get install -y --no-install-recommends ncurses-bin > /dev/null
> fi
>
> RED="$(${SETTPUT} setaf 1)"
> NORMAL="$(${SETTPUT} sgr0)"
> GREEN="$(${SETTPUT} setaf 2)"
> YELLOW="$(${SETTPUT} setaf 3)"
> UNDERLINE="$(${SETTPUT} smul)"
> WHITE="$(${SETTPUT} setaf 7)"
> BOLD="$(${SETTPUT} bold)"
>
> message() {
> printf "%40s\n" "${WHITE}...
2025 Jan 10
2
[PATCH] ssh-add: support parser-friendly operation
...gt; the agent *with a limited lifetime*, having a trivial, *universal* way
> to check whether they have expired by now is an asset.
>
>> workplace$ egrep ' ssh(|add)=' .bashrc
>> alias sshadd='( echo -n "`tput dim`" ; ssh-add -c -t 1800 ; echo -n "`tput sgr0`" )'
>> alias ssh='ssh-add -l >/dev/null || sshadd ; ssh'
With my patch v2, that would need to be:
> alias ssh='ssh-add -l | grep -q . || sshadd ; ssh'
...though the message "The agent has no identities." would be printed to
stderr, for better or...
2020 Sep 29
0
No Samba NT DOMAIN Name found exitting now...
...ho "program tput not found, installing it now.. please wait"
>> apt-get update > /dev/null
>> apt-get install -y --no-install-recommends ncurses-bin > /dev/null
>> fi
>>
>> RED="$(${SETTPUT} setaf 1)"
>> NORMAL="$(${SETTPUT} sgr0)"
>> GREEN="$(${SETTPUT} setaf 2)"
>> YELLOW="$(${SETTPUT} setaf 3)"
>> UNDERLINE="$(${SETTPUT} smul)"
>> WHITE="$(${SETTPUT} setaf 7)"
>> BOLD="$(${SETTPUT} bold)"
>>
>> message() {
>> printf &...