shell-mode での ls
1つのファイルを1行で表示していたので,
気になってしらべてみました。
man ls を読んでいると,
-1, --format=single-column List one file per line. This is the default for when standard output is not a terminal. ... -C, --format=vertical List files in columns, sorted vertically. This is the default if standard output is a termi- nal. It is always the default for dir and d.
stdout が terminal ならデフォルトで,-C が使われる。
stdou が,terminal かどうかはどうやって調べる?
わからん。
けど,man ls から察するに,shell-mode では,standard output is not a terminal.
で,以下を ~/.bashrc に追加。
if [ $TERM = "emacs" ]; then export PS1='\u@meadow \w\n$' # bash alias ls='ls --format=vertical' fi
zsh がなぜかつかえないので,bash。
でも,今度は,各カラムが中央揃えになっている模様。
もうわからんし,飽きたしいいや。
あんまり shell-mode つかわねぇし。(マテ
というか,d というコマンドがあるのには,ばびった。