Changes between Initial Version and Version 1 of docs/vl7/cui-guide/alias


Ignore:
Timestamp:
2013/03/09 15:09:54 (11 years ago)
Author:
yasumichi
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • docs/vl7/cui-guide/alias

    v1 v1  
     1[wiki:docs Vine Linux ドキュメント] / [wiki:../../ Vine Linux 7.x] / [wiki:../ CUI ユーザーズガイド] / コマンドの別名を定義する(エイリアス) 
     2 
     3= コマンドの別名を定義する(エイリアス) = 
     4 
     5 
     6 
     7alias コマンドを使うとコマンドの別名を作成することができます。 
     8 
     9例えば、 
     10{{{ 
     11#!sh 
     12$ alias vit='vim -t' 
     13}}} 
     14とすると 
     15{{{ 
     16#!sh 
     17$ vit hoge.c 
     18}}} 
     19を実行した際に 
     20{{{ 
     21#!sh 
     22$ vim -t hoge.c 
     23}}} 
     24を実行した事になります。 
     25 
     26しかしながら、単にシェル上で実行した alias コマンドの効果があるのは、ログアウトするまでです。次回、ログイン以降も別名を使いたい場合は、~/.bashrc に記述すると良いでしょう。 
     27 
     28ちなみにデフォルトで以下の様な別名が定義されています。 
     29 
     30{{{ 
     31#!sh 
     32alias ls='ls -F --color=auto' 
     33alias ll='ls -la --color=auto' 
     34alias la='ls -a --color=auto' 
     35alias eng='LANG=C LANGUAGE=C LC_ALL=C' 
     36}}}