Skip to content

Instantly share code, notes, and snippets.

@arosh
Last active February 13, 2018 03:58
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arosh/3563719 to your computer and use it in GitHub Desktop.
Save arosh/3563719 to your computer and use it in GitHub Desktop.
Ubuntu Serverで最低限追記しておきたい設定
alias ls='ls -p --color=auto'
alias l='ls'
alias ll='ls -lFh'
alias la='ls -A'
alias lla='ll -A'
alias mv='mv -i'
alias cp='cp -i'
alias rmdir='rm -rf'
alias grep='grep --color=auto'
alias egrep='grep -E'
alias fgrep='grep -F'
$if Bash
# メニューを使って補完する
TAB: menu-complete
# 前方一致履歴補完
"\C-p": history-search-backward
"\C-n": history-search-forward
# 補完時に大文字小文字を無視
set completion-ignore-case on
# ベルを鳴らさない
set bell-style none
# 候補リストのディレクトリや実行可能ファイルに印をつける
set visible-stats on
$endif
set nocompatible
set number
filetype plugin indent on
set ts=4 sw=4 sts=4
set expandtab
set hlsearch
set incsearch
set ignorecase
set smartcase
nmap <ESC><ESC> :<C-u>nohlsearch<CR>
set wrapscan
set laststatus=2
set statusline=%f%m%r%=\ %Y:%{&fenc}:%{&ff}\ %l/%L\ %p%%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment