0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

とりあえず設定すること

Last updated at Posted at 2021-07-11

いつも最低限設定している内容です。

bash

command
wget https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh
wget https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash
.bashrc
alias ls='ls -al --color=auto'
alias ps='ps -ux'
alias df='df -h'
export HISTSIZE=100000
export LANG='ja_JP.UTF-8'
export LC_ALL='ja_JP.UTF-8'
export LC_MESSAGES='ja_JP.UTF-8'

# Git
if [ -f ~/git-completion.bash -a -f ~/git-prompt.sh ]; then
  source ~/git-completion.bash
  GIT_PS1_SHOWDIRTYSTATE=1
  source ~/git-prompt.sh
  PS1='[\u@\h \W$(__git_ps1 " (%s)")]\$ '
fi

vim

.vimrc
set number
set cursorline
set laststatus=2
set tabstop=4
set shiftwidth=4

git

  • .gitconfigファイルを直接編集してもいいが、ここではgit configを使って設定している。
.gitconfig
git config --global user.name "ユーザー名"
git config --global user.email "メールアドレス"
git config --global core.editor 'vim -c "set fenc=utf-8"'
git config --global core.autocrlf false
git config --global core.quotepath false
git config --global color.diff auto
git config --global color.status auto
git config --global color.branch auto
git config --global alias.logs "log --decorate --graph --branches --tags --remotes"

tmux

.tmux.conf
set-option -g mouse on
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?