shell
Inviato: dom 6 feb 2005, 17:05
Ho fatto una ricerca sul forum
<BR>prima di postare ma non sono riuscito a
<BR>risolvere un piccolo problema
<BR>con gli alias di shell
<BR>
<BR>Ho creato un file .bashrc nella directoy dell´utente
<BR>in questo modo:
<BR>
<BR>export LANG=it_IT
<BR>export PS1=´\u@\w/ ´
<BR>PS1=´\u@\w/ ´
<BR> export PS1
<BR>alias ls=´/bin/ls --col´
<BR>
<BR>Poi ho modificato il file /etc/profile
<BR>nelle righe riguardanti la shell
<BR>
<BR># Set a default shell prompt:
<BR>#PS1=´`hostname`:`pwd`# ´
<BR>if [ "$SHELL" = "/bin/pdksh" ]; then
<BR> PS1=´\u@\w/ ´
<BR>elif [ "$SHELL" = "/bin/ksh" ]; then
<BR> PS1=´\u@\w/ ´
<BR>elif [ "$SHELL" = "/bin/zsh" ]; then
<BR> PS1=´\u@\w/ ´
<BR>elif [ "$SHELL" = "/bin/ash" ]; then
<BR> PS1=´\u@\w/ ´
<BR>elif [ "$SHELL" = "/opt/kde/bin/konsole" ]; then
<BR> PS1=´\u@\w/ ´
<BR>else
<BR> PS1=´\u@\w/ ´
<BR>fi
<BR>PS2=´> ´
<BR>export PATH DISPLAY LESS TERM PS1 PS2
<BR>
<BR>Il risuitato è che quando avvio il
<BR>sistema in modalità runlevel 3
<BR>le modifiche vengono viste
<BR>ma poi quando digito startx
<BR>le shell non vanno ne con gli
<BR>alias ne con il prompt che desidero.
<BR>
<BR>Vorrei fare in modo che tutte le shell
<BR>xterm , konsole etc.. leggano
<BR>gli alias all´avvio come posso fare?
<BR><br>
<BR>prima di postare ma non sono riuscito a
<BR>risolvere un piccolo problema
<BR>con gli alias di shell
<BR>
<BR>Ho creato un file .bashrc nella directoy dell´utente
<BR>in questo modo:
<BR>
<BR>export LANG=it_IT
<BR>export PS1=´\u@\w/ ´
<BR>PS1=´\u@\w/ ´
<BR> export PS1
<BR>alias ls=´/bin/ls --col´
<BR>
<BR>Poi ho modificato il file /etc/profile
<BR>nelle righe riguardanti la shell
<BR>
<BR># Set a default shell prompt:
<BR>#PS1=´`hostname`:`pwd`# ´
<BR>if [ "$SHELL" = "/bin/pdksh" ]; then
<BR> PS1=´\u@\w/ ´
<BR>elif [ "$SHELL" = "/bin/ksh" ]; then
<BR> PS1=´\u@\w/ ´
<BR>elif [ "$SHELL" = "/bin/zsh" ]; then
<BR> PS1=´\u@\w/ ´
<BR>elif [ "$SHELL" = "/bin/ash" ]; then
<BR> PS1=´\u@\w/ ´
<BR>elif [ "$SHELL" = "/opt/kde/bin/konsole" ]; then
<BR> PS1=´\u@\w/ ´
<BR>else
<BR> PS1=´\u@\w/ ´
<BR>fi
<BR>PS2=´> ´
<BR>export PATH DISPLAY LESS TERM PS1 PS2
<BR>
<BR>Il risuitato è che quando avvio il
<BR>sistema in modalità runlevel 3
<BR>le modifiche vengono viste
<BR>ma poi quando digito startx
<BR>le shell non vanno ne con gli
<BR>alias ne con il prompt che desidero.
<BR>
<BR>Vorrei fare in modo che tutte le shell
<BR>xterm , konsole etc.. leggano
<BR>gli alias all´avvio come posso fare?
<BR><br>