[split] Move jacaetevha theme to oh-my-fish/theme-jacaetevha

https://github.com/oh-my-fish/theme-jacaetevha
This commit is contained in:
Justin Hileman 2015-05-31 08:30:50 -07:00
parent 4da5d2cd61
commit 77885dcbd1
3 changed files with 0 additions and 70 deletions

View File

@ -1,24 +0,0 @@
## jacaetevha
A theme optimized for people who use:
* Git
* Unicode-compatible fonts and terminals (I use iTerm2 + Monaco)
For Mac users, I highly recommend iTerm 2.
![jacaetevha
theme](http://jacaetevha.github.io/oh-my-fish/screenshot.png)
#### Characteristics
* Left-hand prompt:
```
<user> at <host> in <abbreviated path> <total size of files in dir> (<current Git branch>)
```
* Right-hand prompt:
```
<current date>
```

View File

@ -1,41 +0,0 @@
# name: Jacaetevha
function tbytes -d 'calculates the total size of the files in the current directory'
set -l tBytes (ls -al | grep "^-" | awk 'BEGIN {i=0} { i += $5 } END { print i }')
if test $tBytes -lt 1048576
set -g total (echo -e "scale=3 \n$tBytes/1048 \nquit" | bc)
set -g units " Kb"
else
set -g total (echo -e "scale=3 \n$tBytes/1048576 \nquit" | bc)
set -g units " Mb"
end
echo -n "$total$units"
end
function fish_prompt
set_color yellow
printf '%s' (whoami)
set_color normal
printf ' at '
set_color magenta
printf '%s' (hostname|cut -d . -f 1)
set_color normal
printf ' in '
set_color $fish_color_cwd
printf '%s ' (prompt_pwd)
set_color blue
printf '%s' (tbytes)
set_color normal
printf '%s' (__fish_git_prompt)
# Line 2
echo
if test $VIRTUAL_ENV
printf "(%s) " (set_color blue)(basename $VIRTUAL_ENV)(set_color normal)
end
printf '↪ '
set_color normal
end

View File

@ -1,5 +0,0 @@
function fish_right_prompt -d "Write out the right prompt"
set_color yellow
date
set_color normal
end