A "Best of the Best Practices" (BOBP) guide to developing in Python.
- "Build tools for others that you want to be built for you." - Kenneth Reitz
- "Simplicity is alway better than functionality." - Pieter Hintjens
#!/bin/bash | |
# Source: https://bugs.launchpad.net/byobu/+bug/1393793 | |
# Step 1: Create ~/.byobu/f-keys.tmux | |
cat > ~/.byobu/f-keys.tmux <<"EOM" | |
bind-key -n F2 new-window -c "#{pane_current_path}" \; rename-window "-" | |
bind-key -n C-F2 display-panes \; split-window -h -c "#{pane_current_path}" | |
bind-key -n S-F2 display-panes \; split-window -v -c "#{pane_current_path}" |
function collapse_pwd { | |
echo $(pwd | sed -e "s,^$HOME,~,") | |
} | |
function prompt_char { | |
if [ $UID -eq 0 ]; then | |
echo "%{$fg_bold[red]%}#"; | |
else | |
echo "$"; | |
fi |
function collapse_pwd { | |
echo $(pwd | sed -e "s,^$HOME,~,") | |
} | |
function prompt_char { | |
if [ $UID -eq 0 ]; then | |
echo "%{$fg_bold[red]%}#"; | |
else | |
echo "$"; | |
fi |