Skip to content

@sakoken
sakoken / .bashrc
Last active October 22, 2016 04:30
wercker(deployer)を使った、bitbucketからxserverへの自動デプロイ ref: http://qiita.com/sakoken/items/5b09dd10841afdbc2b26
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# User specific aliases and functions
PATH=$HOME/bin:$PATH
@ys-office-llc
ys-office-llc / .bashrc
Created October 3, 2019 00:39
Bash プロンプトに Git ブランチ情報を追記する記述と表示サンプル
### Automatically switch prompt when git-prompt is present
if [ -f /etc/bash_completion ] ; then
. /etc/bash_completion
fi
if [ -f /etc/bash_completion.d/git-prompt ] ; then
export PS1='\[\033[01;32m\]\u@\h\[\033[01;33m\] \w$(__git_ps1) \n\[\033[01;34m\]\$\[\033[00m\] '
else
@hikaruworld
hikaruworld / .bashrc
Created March 2, 2014 13:34
asadminでbash_complecationを有効にする ref: http://qiita.com/hikaruworld@github/items/aed33254483a4ba4a5eb
if [ -f /Applications/NetBeans/glassfish-4.0/bash_completion.d/asadmin ]; then
. /Applications/NetBeans/glassfish-4.0/bash_completion.d/asadmin
fi
@MaxPleaner
MaxPleaner / .bashrc
Created September 29, 2015 05:39
send_email function for bashrc
function send_email {
curl --url "smtps://smtp.gmail.com:465" --ssl-reqd \
--mail-from "symbolic.contrast@gmail.com" --mail-rcpt "$1" \
--upload-file $2 --user "symbolic.contrast@gmail.com:$GMAIL_PASSWORD" --insecure
}
# replace symbolic.contrast with your email
# and export GMAIL_PASSWORD
# command line options are <recipient> <mail file>
# i.e. send_email maxpleaner@gmail.com mail.txt
@vaknin
vaknin / .bashrc
Created May 19, 2022 06:04
Arch Linux Installation
#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
# Aliases
alias ls='ls --color=auto'
alias vi='nvim'
@juliennonin
juliennonin / .bashrc
Last active July 30, 2022 15:16
[Linux][config] Configuration for custom PS1 (different behavior for git repo, and Python environments) and tab title in gnome-terminal
# >>> custom prompt PS1 >>>
export GIT_PS1_SHOWDIRTYSTATE=1
export GIT_PS1_SHOWUNTRACKEDFILES=1
export GIT_PS1_SHOWUPSTREAM=auto
TRIANGLE_SYM=$'\ue0b0'
function prompt_func() {
# IMPORTANT: Non-printable sequences should be enclosed in \[ and \]
if [ "$(git rev-parse --is-inside-work-tree 2>/dev/null)" ]; then # inside a git repo
gitsubdir=$(basename $(git rev-parse --show-toplevel))/$(git rev-parse --show-prefix)
PS1_BASE="$PS1"
format_prompt () {
if [ "$?" -ne "0" ]; then
PS1="${PS1_BASE}\[\033[0;31m\]ಠ_ಠ\[\033[0m\] "
else
PS1="${PS1_BASE}"
fi
}
PROMPT_COMMAND=format_prompt
@snaka
snaka / .bashrc
Created February 1, 2013 02:24
gem がインストールされているディレクトリに一発で移動するコマンド ref: http://qiita.com/items/9aa786ff67702d016d7d
function cdgem {
cd `dirname \`gem which $1\``;
}
@jbaikge
jbaikge / .bashrc
Created March 7, 2012 15:31
Go Enviornment Variables
# Go goodies
export GOROOT=~/code/golang
export GOPATH=~/code/goexts
# My Go Goodies
export GOPATHDEV=~/code/gopath
export GOPATH=$GOPATH:$GOPATHDEV
export GOBIN=$(echo $GOROOT:$GOPATH/bin | sed s#:#/bin:#g)
export PATH=$PATH:~/bin:$GOBIN
@keatchong
keatchong / .bashrc
Created October 19, 2020 14:36
Java Home
dddd
ddddddd