LoginSignup
1
0

More than 3 years have passed since last update.

Some Scripts

Posted at

Get Selected Finder Items
Run Shell Script

if [[ -d "$1" ]]; then
    open -a Terminal "$1"
elif [[ -f "$1" ]]; then
    open -a Terminal "`dirname "$1"`"
fi



export HISTCONTROL=erasedups
export HISTSIZE=10000
shopt -s histappend

bind '"\e[A": history-search-backward'
bind '"\e[B": history-search-forward'
PS1='\[\e[1;34m\]\D{%b%d %T} `pwd`>\[\e[0m\] '

alias g='grep -r --color=yes -n'

gp()
{
    git add . && git commit -a -m "$1"  && git push
}
gc()
{
    git add . && git commit -a -m "$1"
}
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
1
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
1
0