2
1

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 5 years have passed since last update.

aliasメモ

Last updated at Posted at 2016-06-13

自分で使っているaliasのメモ
随時追加していく。

.bashrc

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

# User specific aliases and functions
# 詳細表示
alias ll='ls -la --color=tty'
# grep
alias grep='grep --color'
alias grr='grep --color -r'
# find
alias f='find . -name'
# ファイルサイズ表示をわかりやすく
alias df='df -h'
# 実行中のプロセスを時系列順に
alias ps='ps --sort=start_time'

# tmux
alias t='tmux'
alias tns='tmux new -s'
alias tl='tmux ls'
alias ta='tmux a'
alias tk='tmux kill-session -t'
alias tkall='tmux kill-server'
alias trn='tmux -rename -t'
alias tat='tmux attach -t'

#-----------git-----------
# git関連に色付け
git config --global color.ui true

alias gcom='git commit -m'
alias gadd='git add .'
alias gb='git branch'
alias gba='git branch -a'
alias gbr='git branch -r'
alias gl='git log -10'
alias glns='git log --name-status -5'
alias gls='git ls-files -cdmokt|grep '
alias gst='git status'
alias gm='git merge'
alias gms='git merge --squash'
alias gch='git checkout'
alias gd='git diff'
alias gf='git fetch'

2
1
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
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?