Welcome to the Linux Foundation Forum!

open the shell

Posts: 3
edited October 2014 in Command Line

Hi. I just installed the slackware 14.1. how do i oper the terminal? because i click up the desktop on the left on the K icon, type "terminal" and it opens a window. why i see bash4.2 instead of "my name@...?"

Comments

  • By default Slackware won't set many different options in your shell.

    In your ~/.bashrc you would want to set:
    1. if [ "$BASH" ]; then
    2. PS1='\u@\h:\w\$ '
    3. alias ls='ls -F'
    4. alias pico='nano';
    5. else
    6. if [ "`id -u`" -eq 0 ]; then
    7. PS1='# '
    8. else
    9. PS1='$ '
    10. fi
    11. fi

    If you are using zsh, in your .zshrc you might set:

    PROMPT="${at_normal}${fg_lgreen}%n@${at_underl}%m${at_underloff}${fg_white} [${fg_cyan}%~${fg_white}]:${fg_white%}%b$reset_color
    ${fg_white}[${fg_green}%T${fg_white}]:${fg_lgray} "

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training