|
|||||||
|
|
|
![]() |
|
|
Strumenti |
|
|
#1 |
|
Senior Member
Iscritto dal: Apr 2001
Città: Perugia
Messaggi: 246
|
Il vostro prompt...
Per la serie "i sondaggi del cavolo"
Il mio e` questo: Codice:
PS1="\[\033[0;35m\](\$(date +%H:%M))-(\[\033[1;35m\]\u@\h\[\033[0;35m\])-(\w)\\$ \[\033[0m\]"
__________________
-> http://zod.oziosi.org -> KeyID: DC9F030F at pgp.mit.edu "E` impossibile godere a fondo l'ozio se non si ha una quantita` di lavoro da fare..." |
|
|
|
|
|
#2 |
|
Bannato
Iscritto dal: Feb 2000
Città: The city of wasting disease
Messaggi: 7390
|
vabbè ma posta quello che fa sennò non rende
|
|
|
|
|
|
#3 |
|
Bannato
Iscritto dal: Dec 2003
Città: Pordenone
Messaggi: 609
|
il mio è C:\
|
|
|
|
|
|
#4 | |
|
Senior Member
Iscritto dal: Apr 2001
Città: Perugia
Messaggi: 246
|
Quote:
__________________
-> http://zod.oziosi.org -> KeyID: DC9F030F at pgp.mit.edu "E` impossibile godere a fondo l'ozio se non si ha una quantita` di lavoro da fare..." |
|
|
|
|
|
|
#5 |
|
Senior Member
Iscritto dal: Nov 2002
Città: Morbegno (SO)
Messaggi: 1410
|
Codice:
-<mason@master:/dev/pts/3>--<1746:gio,08 gen 04>-----------------------------------------------------------------</home/mason>- -<Yes, Master?>-$' -<And Then, Master?>- la domanda yes,master e presa da un altro utente qua sul forum(volevo farla diversa, mi sembrava fosse diversa,in realta' e' pari pari
__________________
e' difficile cio' che non si conosce Tic Tac Andrew Morton, 15/02/2008 LKML:"`tmp' is an awful identifier, and renaming it to `temp' hardly improves it." |
|
|
|
|
|
#6 | |
|
Senior Member
Iscritto dal: Mar 2002
Messaggi: 320
|
Re: Il vostro prompt...
Quote:
Veramente carino 'sto prompt!!!! |
|
|
|
|
|
|
#7 | |
|
Senior Member
Iscritto dal: Feb 2003
Città: Europa
Messaggi: 12310
|
Quote:
Codice:
PS1="[\w] \[\033[1;34m\]Yes, Master?\[\033[0m\] "
__________________
MBPr i7 - iPhone 5 - Nexus 7 2013 EOS 550D ML |
|
|
|
|
|
|
#8 |
|
Senior Member
Iscritto dal: Nov 2002
Città: Morbegno (SO)
Messaggi: 1410
|
sicuramente e tua
cmq la cambiero in qualcosa altro cmq questo e il mio bashrc per il ps1 e ps2 Codice:
function prompt_command {
TERMWIDTH=${COLUMNS}
# Calculate the width of the prompt:
hostnam=$(echo -n $HOSTNAME | sed -e "s/[\.].*//")
# "whoami" and "pwd" include a trailing newline
usernam=$(whoami)
cur_tty=$(tty | sed -e "s/.*tty\(.*\)/\1/")
newPWD="${PWD}"
hour=$(date +%H%M)
date=$(date "+%a,%d %b %y")
question="Yes, Master?"
cont="And Then, Master?"
res="Here The Asnwer, Master!"
# Add all the accessories below ...
let promptsize=$(echo -n "\-<${usernam}@${hostnam}:${cur_tty}${PWD}\>-\-<${hour}:${date}\>-" \
| wc -c | tr -d " ")
let fillsize=${TERMWIDTH}-${promptsize}
fill=""
while [ "$fillsize" -gt "0" ]
do
fill="${fill}-"
let fillsize=${fillsize}-1
done
if [ "$fillsize" -lt "0" ]
then
let cut=3-${fillsize}
newPWD="...$(echo -n $PWD | sed -e "s/\(^.\{$cut\}\)\(.*\)/\2/")"
fi
}
PROMPT_COMMAND=prompt_command
function twtty {
local GREEN="\[\033[0;32m\]"
local LIGHT_GREEN="\[\033[1;32m\]"
local WHITE="\[\033[1;37m\]"
local NO_COLOUR="\[\033[0m\]"
local LIGHT_RED="\[\033[1;31m\]"
local YELLOW="\[\033[1;33m\]"
case $TERM in
xterm*)
TITLEBAR='\[\033]0;\u@\h:\w\007\]'
;;
*)
TITLEBAR=""
;;
esac
PS1="$TITLEBAR\
$GREEN-<\
$LIGHT_GREEN\$usernam$LIGHT_RED@$LIGHT_GREEN\$hostnam$LIGHT_RED:$LIGHT_GREEN\$cur_tty\
$GREEN>-\
$GREEN-<\
$LIGHT_GREEN\$hour$LIGHT_RED:$LIGHT_GREEN\$date\
$GREEN>-\${fill}$GREEN-<\
$LIGHT_GREEN\${newPWD}\
$GREEN>-\
\n\
$GREEN-<\
$LIGHT_GREEN\$question\
$GREEN>-\$"
PS2="$GREEN-<\
$LIGHT_GREEN\${cont}\
$GREEN>-"
PS4="$GREEN-<\
$LIGHT_GREEN\${res}\
$GREEN>-"
}
__________________
e' difficile cio' che non si conosce Tic Tac Andrew Morton, 15/02/2008 LKML:"`tmp' is an awful identifier, and renaming it to `temp' hardly improves it." |
|
|
|
|
|
#9 | |
|
Senior Member
Iscritto dal: Feb 2003
Città: Europa
Messaggi: 12310
|
Quote:
__________________
MBPr i7 - iPhone 5 - Nexus 7 2013 EOS 550D ML |
|
|
|
|
|
|
#10 |
|
Senior Member
Iscritto dal: May 2002
Città: Padua, Italy
Messaggi: 3288
|
azzo sono ste ps1 e 2????!?!?!?!?!?!
come le setto? sono le scritte che si vedono quando si apre un terminale???? dove metto il codice? |
|
|
|
|
|
#11 |
|
Senior Member
Iscritto dal: Nov 2002
Città: Torino
Messaggi: 601
|
Sto 3d e' originale. Lollissimo quello di "Yes, master", il mio non lo posto che e' vergognoso.
|
|
|
|
|
|
#12 | |
|
Senior Member
Iscritto dal: May 2002
Città: Padua, Italy
Messaggi: 3288
|
Quote:
|
|
|
|
|
|
|
#13 |
|
Senior Member
Iscritto dal: Nov 2002
Città: Morbegno (SO)
Messaggi: 1410
|
__________________
e' difficile cio' che non si conosce Tic Tac Andrew Morton, 15/02/2008 LKML:"`tmp' is an awful identifier, and renaming it to `temp' hardly improves it." |
|
|
|
|
|
#14 |
|
Senior Member
Iscritto dal: Apr 2001
Città: Prato
Messaggi: 253
|
leggendo questo thread mi è venuta voglia di cambiare il prompt:
Codice:
PS1="[\[\033[0m\]\033[0;37m\u@\033[4;34mB\033[4;31me\033[0;37mbox\033[0;37m]~$(date +%H:%M:%S)~\033[1;31m#\[\033[0m\] " vedi immagine..
__________________
"in the end, son, i was once like you ..." |
|
|
|
|
|
#15 | |
|
Bannato
Iscritto dal: Feb 2000
Città: The city of wasting disease
Messaggi: 7390
|
Quote:
usi BeOS? che versione usi? e come ti trovi? in caso di risposta affermativa alla prima domanda seguiranno altre domande |
|
|
|
|
|
|
#16 | |
|
Bannato
Iscritto dal: Dec 2003
Città: Pordenone
Messaggi: 609
|
Quote:
|
|
|
|
|
|
|
#17 | |
|
Senior Member
Iscritto dal: Apr 2003
Città: Rimini
Messaggi: 3970
|
Quote:
In Debian come si chiama il pacchetto da installare ? Il mio cmq è 1 banalissimo neo@server:$
__________________
Powered by Apple Macbook Pro Retina |
|
|
|
|
|
|
#18 | |
|
Senior Member
Iscritto dal: Apr 2001
Città: Prato
Messaggi: 253
|
Quote:
come mi trovo? 1000 volte meglio che con winzozz: ho mozilla firebird sempre aggiornato all'ultima versione, preemptive multitasking, multithreading, microkernel, file system journaled database-like, memoria protetta, uptime degno di qnx, applicativi per qualsiasi tipo di attività, e sfrutto appieno le potenzialità del mio hardware.. e cosa più importante: mi sono dimenticato le schermate blu bye.
__________________
"in the end, son, i was once like you ..." |
|
|
|
|
|
|
#19 | |
|
Bannato
Iscritto dal: Feb 2000
Città: The city of wasting disease
Messaggi: 7390
|
Quote:
non sai quanto ti invidio... il mio modem (speedtouch adsl usb) non è supportato e così sono costretto a rimanere su altri sistemi (linux, che cmq è un'ottima alternativa), ma io sono innamorato di BeOS |
|
|
|
|
|
|
#20 | |
|
Bannato
Iscritto dal: Dec 2003
Città: Pordenone
Messaggi: 609
|
Quote:
|
|
|
|
|
|
| Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 21:07.



















