Skip to content

Instantly share code, notes, and snippets.

View dethbunny's full-sized avatar

Christian L dethbunny

View GitHub Profile
$ cat .config/fish/functions/fish_prompt.fish
function fish_prompt --description 'Write out the prompt'
if test -z $WINDOW
printf '%s%s@%s%s%s%s%s> ' (set_color yellow) (whoami) (set_color purple) (hostname|cut -d . -f 1) (set_color $fish_color_cwd) (prompt_pwd) (set_color normal)
else
printf '%s%s@%s%s%s(%s)%s%s%s> ' (set_color yellow) (whoami) (set_color purple) (hostname|cut -d . -f 1) (set_color white) (echo $WINDOW) (set_color $fish_color_cwd) (prompt_pwd) (set_color normal)
end
# update the cwd to facilitate restore
@dethbunny
dethbunny / DefaultKeyBinding.dict
Last active December 22, 2015 22:29
Map ctrl-right and ctrl-left to next and previous word
/* ~/Library/KeyBindings/DefaultKeyBinding.dict */
{
"^\UF703"="moveWordForward:";
"^\UF702"="moveWordBackward:";
}