Skip to content

Instantly share code, notes, and snippets.

@kou029w
Last active August 16, 2020 05:23
Show Gist options
  • Save kou029w/1956e2736e8e26fd84ef46c0a2146526 to your computer and use it in GitHub Desktop.
Save kou029w/1956e2736e8e26fd84ef46c0a2146526 to your computer and use it in GitHub Desktop.
HISTSIZE=1000000
HISTFILESIZE=2000000
PROMPT_COMMAND='[[ $_PWD == $PWD ]] || { _PWD=$PWD; ls; }'
PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]$(__git_ps1 " \[\033[32m\](%s)\[\033[00m\]")\n\$ '
shopt -s autocd
Tab: menu-complete
"\e[Z": menu-complete-backward # Shift-Tab
eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)
[ -n "$BASH_VERSION" ] && . "${HOMEBREW_REPOSITORY}/completions/bash/brew"
PATH="$(yarn global bin):$PATH"
@kou029w
Copy link
Author

kou029w commented Jun 12, 2019

https://scrapbox.io/kou029w/anyenv_rbenv%E3%82%92%E3%82%84%E3%82%81%E3%81%A6linuxbrew%E3%81%AB%E3%81%97%E3%81%9F anyenvやめた
hub alias -salias git=hub でよい

今はこんな感じ

HISTSIZE=1000000
HISTFILESIZE=2000000
PROMPT_COMMAND='[[ $_PWD == $PWD ]] || { _PWD=$PWD; ls; }'
PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]$(__git_ps1 " \[\033[32m\](%s)\[\033[00m\]")\n\$ '
shopt -s autocd
alias git=hub
. "${HOMEBREW_REPOSITORY}/completions/bash/brew"
PATH="$HOME/.local/bin:$PATH"
PATH="$(yarn global bin):$PATH"
eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)
[ -n "$BASH_VERSION" ] && . "$HOME/.bashrc"

依存しているソフトウェアとしてはこんなところか

  • bash
  • git
  • git-prompt
  • hub
  • yarn
  • linuxbrew

@kou029w
Copy link
Author

kou029w commented Aug 16, 2020

HISTCONTROLを重複消すやつにしてる

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment