Languages
9,617 gist results
9,617 gist results
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RED='\[\033[31m\]' | |
GREEN='\[\033[32m\]' | |
YELLOW='\[\033[33m\]' | |
BLUE='\[\033[34m\]' | |
MAGENTA='\[\033[35m\]' | |
CYAN='\[\033[36m\]' | |
WHITE='\[\033[37m\]' | |
RESET='\[\033[00m\]' | |
hg_ps1() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is my .bashrc for my mac book pro at work. | |
# I'm no expert at bash or mac (actually fairly new to macs) | |
# Feel free to use, alter and fork. | |
# I took several things from this guy's bash profile: https://natelandau.com/my-mac-osx-bash_profile/ | |
# First, colors. Taste the rainbow. | |
# ---------------------------------------------------------- | |
# Colors | |
BLUE="\033[0;34m" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh-agent fish | |
exit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias brc="vim ~/.bashrc; . ~/.bashrc" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
case $- in | |
*i*) ;; | |
*) return;; | |
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SSH Environment | |
# SSH_ENV=$HOME/.ssh/environment | |
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) for examples | |
# If not running interactively, don't do anything | |
[ -z "$PS1" ] && return | |
# Don't put duplicate lines in the history. See bash(1) for more options |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export EDITOR=vim | |
source $HOME/.git-prompt.sh | |
export GIT_PS1_SHOWDIRTYSTATE=1 | |
export GIT_PS1_SHOWUPSTREAM="auto" | |
export GIT_PS1_SHOWCOLORHINTS="auto" | |
export GIT_PS1_SHOWSTASHSTATE="true" | |
export PS1=$PS1'\[\033[1;37m\]\w\[\033[0;33m\]$(__git_ps1 " (%s)") \[\033[0;37m\]\$\[\033[00m\] ' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
case $- in | |
*i*) ;; | |
*) return;; | |
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# bashrc for c9 workspaces | |
# by Yerko Palma | |
. /etc/apache2/envvars | |
# If not running interactively, don't do anything else | |
[ -z "$PS1" ] && return | |
# don't put duplicate lines or lines starting with space in the history. | |
# See bash(1) for more options |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function t2conda () { | |
ssh -t t2a006170 "export https_proxy=proxy.noc.titech.ac.jp:3128;conda $@" | |
} |