Skip to content

Instantly share code, notes, and snippets.

View saibayadon's full-sized avatar
💯

Bruno Lazzaro saibayadon

💯
View GitHub Profile
local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
local user_host='%{$terminfo[bold]$fg[green]%}%n%{$reset_color%}'
local current_dir='%{$terminfo[bold]$fg[cyan]%} %~%{$reset_color%}'
local node_ver='%{$fg[red]%}‹$(node -v)›%{$reset_color%}'
local git_branch='$(git_prompt_info)%{$reset_color%}'
local hg_branch='%{$terminfo[bold]$fg[cyan]%}$(hg_prompt_info)%{$reset_color%}'
PROMPT="%{$fg[red]%}❯%{$fg[yellow]%}❯%{$fg[green]%}❯%{$reset_color%}${current_dir} ${node_ver} ${hg_branch}${git_branch}"
RPS1="${return_code}"
#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Ask for the administrator password upfront
sudo -v
# Set the colours you can use
black='\033[0;30m'