Na Ọnụ: vingkwalite ọdịdị nke njikwa

Abụ m otu n'ime ndị hụrụ n'anya na-eji ọnụ. Echere m na ndị ọrụ niile GNU / Linux N'otu oge ha enweghị ike ibi na-enweghị ya, n'ihi na mpempe akwụkwọ ahụ jupụtara na mkpụrụedemede na-eme ka ndụ dịrị ọtụtụ mfe, nri?

Ma anyị nwere ike ime ka ọ dị ka obere mma karịa nke ndabara. Enwere ike ịhụ ihe atụ nke a (ma budata) site na gnome-anya. Ndụmọdụ ndị m ga - egosi gị ọzọ, bụ ịhapụ ọnụ anyị na ụdị ndị a:

Dị ka ị pụrụ ịhụ, na iwu igbu ma debe ya n’etiti usoro obula usoro iheomume ya na sistemụ oge.

Kedu ka m ga-esi mee ya?

Anyị mepee ederede ederede (dịka ọmụmaatụ Gedit) anyị weba ya n'ime:

# 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

Anyị na-edebe ya n’ime anyị / n'ụlọ ya na aha .bash_ps2 ọmụmaatụ. Mgbe ahụ, anyị na-emeghe anyị .bashrc anyị tinye:

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

Anyị na-emeghe ọnụ na anyị nwere ike ịhụ mgbanwe 😀

 

Hụrụ na: Mụ mmadụ.


Ọdịnaya nke isiokwu agbaso ụkpụrụ anyị nke ụkpụrụ nduzi. Kpesa mmejọ pịa ebe a.

Ihe 17 kwuru, hapụ nke gị

Hapu okwu gi

Adreesị email gị agaghị bipụtara. Chọrọ ubi na-akara na *

*

*

  1. Rụ ọrụ maka data: Miguel Ángel Gatón
  2. Nzube nke data: Nchịkwa SPAM, njikwa okwu.
  3. Ikike: Nkwenye gị
  4. Nkwurịta okwu nke data: Agaghị agwa ndị ọzọ data ahụ ma ọ bụghị site na iwu.
  5. Nchekwa data: Ebe nchekwa data nke Occentus Networks (EU) kwadoro
  6. Ikike: Oge obula inwere ike igbachi, weghachite ma hichapụ ihe omuma gi.

  1.   Luweeds dijo

    Daalụ maka blog nke mbụ na ajụjụ, enwere ike ịhazi xterm ma ọ bụ lxterminal karịa agba nke ederede na ndabere? (Ha bụ ọdụ m na-ejikarị).
    Daalụ!

  2.   Eduardo dijo

    GENIALLLLLLLLLLLLLL 🙂

    Agbalịrị m ya otu izu gara aga mgbe m gụrụ isiokwu a na blọọgụ ọzọ, mana n'ihi nsogbu na nkwuputa na ihe ị ga-agbakwunye .bashrc Enweghị m ike iji ya. Ugbu a ọ rụpụtara m ọrụ izizi.

    Daalụ.

    1.    KZKG ^ Gaara dijo

      Obi uto imata na o mere ihe ichoro 😉
      Nzaghachi na see okwu

  3.   Taregon dijo

    :] magburu onwe ya ma ọ bụrụ na ọ na-eme ihe m chere na m chere ... weeee, M wụnye ya na ngwụsị izu a 😀

    1.    KZKG ^ Gaara dijo

      N'ezie m mere ka ọ ka mma hehe ... M tinye ihe blushes na ọ na-ese ka mma, M ga-eme a post ebipụta m ndozi na mgbanwe 😉

      Dezie: Kama itinye nke ahụ .bash_ps2 tinye nke a ọzọ: http://paste.desdelinux.net/paste/6

      1.    Eduardo dijo

        Enwetara m njehie na ahịrị 13 na 34.

        1.    elav <° Linux dijo

          Anyị abụrụla 2 😀

      2.    obi ike dijo

        Fuck, ọzọ ọchịchịrị n'akụkụ programmer ...

        1.    KZKG ^ Gaara dijo

          Ahapụrụ m koodu ebe a, amaghị m ihe kpatara o ji enye ha njehie ... o_0U na-arụ ọrụ ọma maka m:
          # 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 dijo

    Nke a mara mma nke a, m nwalere ya ma ọ na-arụ ọrụ 100% ubuntu 11.10

    Daalụ !!

  5.   napụ dijo

    Enwekwara m njehie na ahịrị 13 na 34

    ahịrị 13: EOF na-atụghị anya ya mgbe ị na-achọ nha ``
    akara 34: arụnyere syntactic: njedebe faịlụ ahụ adịghị atụ anya

    M na-eji Linux Mint 11 lxde mee ihe bara uru.

    Ekele!

  6.   Jim n'onweking dijo

    Ọ na-arụ ọrụ 100% na onye ọrụ nkịtị, mana oge ị ghọrọ superuser ọ kwụsịrị ịrụ ọrụ, ọ nweghị ihe ọ bụla. Echere m na ọ dị mfe, mana amaghị m otu esi eme ọtụtụ, azịza ọ bụla?

    1.    KZKG ^ Gaara dijo

      Ihe ị tinyere n'ime gị .bashrc, ị ga-etinyerịrị ya / mgbọrọgwụ /.bashrc
      Were ule gwa anyi kedu you

      Ekele 😀

      1.    Jim n'onweking dijo

        Ọ na-arụ ọrụ zuru oke, amaghị m etu m si gbalịa tupu m jụọ. Daalụ

        1.    KZKG ^ Gaara <° Linux dijo

          Nah echegbula 🙂

  7.   angel dijo

    Hey enyi, ọ bụrụ na ị ga-enyere m aka biko m na-agbalị ya ma gburugburu na-egosi na ọ bụ ka na nwa, m na-eji fedora19, na usoro iheomume ma ọ bụrụ na ọ na-egosi ... ka na-ekele gị nke ukwuu maka gị onyinye

  8.   Miguel dijo

    oru a o dikwa otu na debian ???