NgeXesha: Ukuphucula ukubonakala kwekhonsoli

Ndingomnye wabo bathanda ukusebenzisa i-terminal. Ndicinga ukuba bonke abasebenzisi be GNU / Linux Ngelinye ixesha abanakuphila ngaphandle kwayo, kuba eso siqwenga sefestile esigcweleyo iileta senza ubomi bube lula kakhulu kuthi, akunjalo?

Kodwa singayenza ibonakale intle kancinci kunaleyo ingagqibekanga. Umzekelo woku unokubonwa (kwaye ukhutshelwe) kwi gnome-jonga. Iingcebiso endizokubonisa apha ngezantsi kukushiya itheminali yethu ngolu hlobo lulandelayo:

Njengoko ubona, umyalelo wokuphumeza kwaye ibekwa phakathi komyalelo ngamnye umgca wexesha ngexesha lenkqubo.

Ndiyenza njani?

Sivula umhleli wombhalo (umzekelo IGedit) kwaye sayifaka ngaphakathi:

# Fill with minuses
# (this is recalculated every time the prompt is shown in function prompt_command):

fill="--- "
reset_style='\[\033[00m\]'
status_style=$reset_style'\[\033[0;90m\]' # gray color; use 0;37m for lighter color
prompt_style=$reset_style
command_style=$reset_style'\[\033[1;29m\]' # bold black
# Prompt variable:
PS1="$status_style"'$fill \t\n'"$prompt_style"'${debian_chroot:+($debian_chroot)}\u@\h:\w\$'"$command_style "
# Reset color for command output
# (this one is invoked every time before a command is executed):
trap 'echo -ne "\e[0m"' DEBUG
function prompt_command {
# create a $fill of all screen width minus the time string and a space:
let fillsize=${COLUMNS}-9
fill=""
while [ "$fillsize" -gt "0" ] do
fill="-${fill}" # fill with underscores to work on
let fillsize=${fillsize}-1
done
# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
bname=`basename "${PWD/$HOME/~}"`
echo -ne "\033]0;${bname}: ${USER}@${HOSTNAME}: ${PWD/$HOME/~}\007"
;;
*)
;;
esac
}
PROMPT_COMMAND=prompt_command

Siyigcina ngaphakathi kwethu / ikhaya enegama .ibhashi_ps2 umzekelo. Emva koko sivula eyethu .ukuku kwaye sidibanisa:

if [ -f "$HOME/.bash_ps2" ]; then
. "$HOME/.bash_ps2"
fi

Sivula itheminali kwaye siyalubona utshintsho 😀

Ibonwe kwi: Abantu.


Shiya uluvo lwakho

Idilesi yakho ye email aziyi kupapashwa. ezidingekayo ziphawulwe *

*

*

  1. Uxanduva lwedatha: UMiguel Ángel Gatón
  2. Injongo yedatha: Ulawulo lwe-SPAM, ulawulo lwezimvo.
  3. Umthetho: Imvume yakho
  4. Unxibelelwano lwedatha: Idatha ayizukuhanjiswa kubantu besithathu ngaphandle koxanduva lomthetho.
  5. Ukugcinwa kweenkcukacha
  6. Amalungelo: Ngalo naliphi na ixesha unganciphisa, uphinde uphinde ucime ulwazi lwakho.

  1.   luweeds sitsho

    Enkosi ngebhlog yokuqala kunye nombuzo, ngaba ikhona into enokwenzeka yokwenza ngokwezifiso i-xterm okanye i-lxterminal ngaphaya kombala wesicatshulwa kunye nemvelaphi? (Ziziphelo endizisebenzisa kakhulu).
    Enkosi!

  2.   Eduardo sitsho

    NGOKWENZAKALAYOLLLLLLLLLLLLL 🙂

    Ndizamile kwiveki ephelileyo xa bendifunda esi sihloko kwenye ibhlog, kodwa ngenxa yengxaki ngezicaphulo kwinto ekufuneka yongeziwe kwi .ukuku Andikwazi ukuyisebenzisa. Ngoku isebenze ngokuchanekileyo kum kuqala.

    Enkosi kuwe.

    1.    I-KZKG ^ iGaara sitsho

      Kuluyolo ukwazi ukuba yenza kanye le nto ubuyifuna 😉
      Phendula nge quote

  3.   Itargon sitsho

    :] egqwesileyo ukuba yenza le ndiyicingayo ndicinga ... weeee, ndiyayifaka kule mpelaveki

    1.    I-KZKG ^ iGaara sitsho

      Ngapha koko ndiyiphuculile hehe ... ndibeka ngaphezulu blushes kwaye ijongeka ngcono kakhulu, ndiza kwenza iposti ipapasha ukuphuculwa kunye nokulungiswa

      U lungiswe: Endaweni yokufaka .ibhashi_ps2 beka enye: http://paste.desdelinux.net/paste/6

      1.    Eduardo sitsho

        Ndifumana impazamo kwimigca ye-13 neye-34.

        1.    I-elav <° iLinux sitsho

          Sele siyi-2 😀

      2.    isibindi sitsho

        Fuck, omnye umdwelisi wecala elimnyama ...

        1.    I-KZKG ^ iGaara sitsho

          Ndishiya ikhowudi apha, andazi ukuba kutheni ibanika impazamo ... o_0U isebenza kakuhle kum:
          # Fill with minuses
          # (this is recalculated every time the prompt is shown in function prompt_command):

          fill="--- "
          reset_style='\[\033[00m\]'
          status_style=$reset_style'\[\033[0;90m\]' # gray color; use 0;37m for lighter color
          prompt_style=$reset_style
          command_style=$reset_style'\[\033[1;29m\]' # bold black
          # Prompt variable:
          PS1="$status_style"'$fill \t\n'"$prompt_style"'${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m$
          # Reset color for command output
          # (this one is invoked every time before a command is executed):
          trap 'echo -ne "\e[0m"' DEBUG
          function prompt_command {
          # create a $fill of all screen width minus the time string and a space:
          let fillsize=${COLUMNS}-9
          fill=""
          while [ "$fillsize" -gt "0" ]
          do
          fill="-${fill}" # fill with underscores to work on
          let fillsize=${fillsize}-1
          done
          # If this is an xterm set the title to user@host:dir
          case "$TERM" in
          xterm*|rxvt*)
          bname=`basename "${PWD/$HOME/~}"`
          echo -ne "\033]0;${bname}: ${USER}@${HOSTNAME}: ${PWD/$HOME/~}\007"
          ;;
          *)
          ;;
          esac
          }
          PROMPT_COMMAND=prompt_command

  4.   newbie sitsho

    Kuhle kakhulu oku, ndiyivivinyile kwaye isebenza nge-100% ubuntu 11.10

    Ukubulisa !!

  5.   Ziphanga sitsho

    Ewe, ndifumana impazamo kwimigca 13 kunye 34

    umgca we-13: I-EOF engalindelekanga ngelixa ukhangela ukuthelekisa ``
    Umgca wama-34: impazamo yokwenziwa kwento: ukuphela kwefayile kwakungalindelwanga

    Ndisebenzisa i-linux mint 11 lxde kwinto eyiyo.

    Nibuliso!

  6.   Ukuzonwabisa sitsho

    Isebenza nge-100% kunye nomsebenzisi oqhelekileyo, kodwa okomzuzwana xa uyi superuser iyeka ukusebenza, ayenzi nto. Ndicinga ukuba kulula, kodwa andazi ukuba ndenze kangakanani, nasiphi na isisombululo?

    1.    I-KZKG ^ iGaara sitsho

      Into oyifaka kwifayile yakho .ukuku, kufuneka uyifake /ingcambu/.bashrc
      Thatha uvavanyo uze usixelele unjani?

      Ukubulisa 😀

      1.    Ukuzonwabisa sitsho

        Isebenza ngokugqibeleleyo, andazi ukuba khange ndizame njani ngaphambi kokuba ndibuze. Enkosi

        1.    I-KZKG ^ iGaara <° iLinux sitsho

          Nah ungakhathazeki 🙂

  7.   ngelosi sitsho

    Hee mfondini, ukuba ungandinceda nceda ndizamile kodwa isangqa asiveli kwaye sisebumnyameni, ndisebenzisa i-fedora19, ixesha elifanelekileyo ukuba liyavela ... ndisabulela kakhulu ngegalelo lakho

  8.   Miguel sitsho

    uyasebenza ngokufanayo kwiDebian ???