[ 表紙に戻る ]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Linuxmint-jp:222] bash プロンプトを変更したい



梅田です。

bashプロンプトを標準的な状態=$に変更したいのですが、

http://nigohiroki.hatenablog.com/entry/2013/01/12/211913

を参考に添付ファイルのように最下段に

> #change bash prompt
> export ps1="$"

書き加えましたが変更されません。どのようにしたらいいか、ご教示いただけた
らと思います。



-- 
UMEDA MITSUNORI <m.umeda@green.email.ne.jp>

# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples

# Source global definitions
if [ -f /etc/bash.bashrc ]; then
        . /etc/bash.bashrc
fi

# If not running interactively, don't do anything
[ -z "$PS1" ] && return

# don't put duplicate lines in the history. See bash(1) for more options
# ... or force ignoredups and ignorespace
HISTCONTROL=ignoredups:ignorespace

# append to the history file, don't overwrite it
shopt -s histappend

# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=1000
HISTFILESIZE=2000

# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize

# make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"


# Add an "alert" alias for long running commands.  Use like so:
#   sleep 10; alert
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'

# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.

if [ -f ~/.bash_aliases ]; then
    . ~/.bash_aliases
fi


# mint-fortune
/usr/bin/mint-fortune
#change bash prompt
export ps1="$"


_______________________________________________
linuxmint-jp mailing list
linuxmint-jp@linuxmint-jp.net
http://linuxmint-jp.net/mailman/listinfo/linuxmint-jp