Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
09e2193a
Commit
09e2193a
authored
Aug 31, 2009
by
Robby Russell
Browse files
Options
Browse Files
Download
Plain Diff
Merging geoffgarside work
parents
e1f5c0c7
af8294d2
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
44 additions
and
13 deletions
+44
-13
aliases.zsh
aliases.zsh
+14
-5
functions.zsh
functions.zsh
+23
-2
git.zsh
git.zsh
+2
-2
prompt.zsh
prompt.zsh
+1
-2
geoffgarside.zsh-theme
themes/geoffgarside.zsh-theme
+2
-0
zshrc
zshrc
+2
-2
No files found.
aliases.zsh
View file @
09e2193a
...
...
@@ -2,7 +2,8 @@ alias pu='pushd'
alias
po
=
'popd'
alias
sc
=
'ruby script/console'
alias
ss
=
'ruby script/server'
alias
sd
=
'ruby script/server --debugger'
alias
ss
=
'thin --stats "/thin/stats" start'
alias
mr
=
'mate CHANGELOG app config db lib public script spec test'
alias
.
=
'pwd'
...
...
@@ -10,11 +11,12 @@ alias ...='cd ../..'
alias
_
=
'sudo'
alias
g
=
'grep -in'
#alias g='grep -in'
alias
g
=
'git'
alias history
=
'fc -l 1'
alias ls
=
'ls -
G
F'
alias ls
=
'ls -F'
alias
ll
=
'ls -al'
alias
sgem
=
'sudo gem'
...
...
@@ -26,4 +28,12 @@ alias git-svn-dcommit-push='git svn dcommit && git push github master:svntrunk'
bindkey
'\ew'
kill-region
bindkey
-s
'\el'
"ls
\n
"
bindkey
-s
'\e.'
"..
\n
"
\ No newline at end of file
bindkey
-s
'\e.'
"..
\n
"
alias
et
=
'mate . &'
alias
ett
=
'mate app config lib db public spec test Rakefile Capfile Todo &'
alias
etp
=
'mate app config lib db public spec test vendor/plugins vendor/gems Rakefile Capfile Todo &'
alias
etts
=
'mate app config lib db public script spec test vendor/plugins vendor/gems Rakefile Capfile Todo &'
bindkey
"^[[A"
history-beginning-search-backward
bindkey
"^[[B"
history-beginning-search-forward
functions.zsh
View file @
09e2193a
...
...
@@ -30,4 +30,26 @@ function zsh_stats() {
function
uninstall_oh_my_zsh
()
{
/bin/sh
$ZSH
/tools/uninstall.sh
}
\ No newline at end of file
}
function
tab
()
{
osascript 2>/dev/null
<<
EOF
tell application "System Events"
tell process "Terminal" to keystroke "t" using command down
end
tell application "Terminal"
activate
do script with command "cd
$PWD
;
$*
" in window 1
end tell
EOF
}
function
take
()
{
mkdir
-p
$1
cd
$1
}
function
tm
()
{
cd
$1
mate
$1
}
git.zsh
View file @
09e2193a
...
...
@@ -3,7 +3,7 @@ function git_prompt_info() {
if
[[
-d
.git
]]
;
then
ref
=
$(
git symbolic-ref HEAD 2> /dev/null
)
||
return
branch
=
${
ref
#refs/heads/
}
CURRENT_BRANCH
=
"
%{
$fg
[red]%}git:(%{
$fg
[green]
${
branch
}
%{
$fg
[red]
)"
CURRENT_BRANCH
=
"
git:(%{
$fg
[red]%}
${
branch
}
%{
$fg
[blue]%})%{
$reset_color
%}
$(
parse_git_dirty
)
"
else
CURRENT_BRANCH
=
''
fi
...
...
@@ -12,5 +12,5 @@ function git_prompt_info() {
}
parse_git_dirty
()
{
[[
$(
git status |
tail
-n1
)
!=
"nothing to commit (working directory clean)"
]]
&&
echo
"
%{
$fg
[white] ♻
"
[[
$(
git status |
tail
-n1
)
!=
"nothing to commit (working directory clean)"
]]
&&
echo
"
%{
$fg
[yellow]%}✗%{
$reset_color
%}
"
}
prompt.zsh
View file @
09e2193a
...
...
@@ -29,4 +29,4 @@ setopt prompt_subst
export
LSCOLORS
=
"Gxfxcxdxbxegedabagacad"
source
"
$ZSH
/themes/
$ZSH_THEME
.zsh-theme"
\ No newline at end of file
source
"
$ZSH
/themes/
$ZSH_THEME
.zsh-theme"
themes/geoffgarside.zsh-theme
0 → 100644
View file @
09e2193a
# PROMPT="[%*] %n:%c $(git_prompt_info)%(!.#.$) "
PROMPT='[%*] %{$fg[cyan]%}%n%{$reset_color%}:%{$fg[green]%}%c%{$reset_color%}$(git_prompt_info) %(!.#.$) '
zshrc
View file @
09e2193a
...
...
@@ -4,12 +4,12 @@ export ZSH=$HOME/.oh-my-zsh
# Set to the name theme to load.
# Look in ~/.oh-my-zsh/themes/
export ZSH_THEME="robbyrussell"
# export ZSH_THEME="geoffgarside"
# Load all of the config files in ~/oh-my-zsh that end in .zsh
# TIP: Add files you don't want in git to .gitignore
for i in $ZSH/*zsh; do source $i; done;
# Customize to your needs...
export PATH=~/bin:/opt/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/local/sbin:/opt/local/lib/postgresql83/bin
#export PATH=~/bin:/opt/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/local/sbin:/opt/local/lib/postgresql83/bin
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment