This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TMUX_POWERLINE_SEPARATOR_LEFT_BOLD="⮂" | |
TMUX_POWERLINE_SEPARATOR_LEFT_THIN="⮃" | |
TMUX_POWERLINE_SEPARATOR_RIGHT_BOLD="⮀" | |
TMUX_POWERLINE_SEPARATOR_RIGHT_THIN="⮁" | |
TMUX_POWERLINE_GIT="⭠" | |
set-option -g status-left "#(~/dotfiles/.tmux/tmux-powerline/powerline.sh left)#[bg=black]#[fg=white] #[fg=blue]#[bg=blue]#[fg=black]${TMUX_POWERLINE_SEPARATOR_RIGHT_BOLD}#[bg=blue]#[fg=white] #(~/dotfiles/.tmux/tmux-powerline/segments/used-mem) %% | #(df -h | grep disk | sed 's/ /,/g' | cut -d , -f 4) #[bg=colour013]#[fg=blue]${TMUX_POWERLINE_SEPARATOR_RIGHT_BOLD}#[bg=colour013]#[fg=colour021]#(~/gist/mplayer_tmux.sh)#[bg=black]#[fg=colour013]${TMUX_POWERLINE_SEPARATOR_RIGHT_BOLD}" | |
set-option -g status-right "#[fg=black]${TMUX_POWERLINE_SEPARATOR_RIGHT_BOLD}#(~/dotfiles/.tmux/tmux-powerline/powerline.sh right)" | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# os : archlinux | |
# terminal : lilyterm | |
# font : ttf-dejavu | |
# source : https://gist.github.com/3feec5b12fcf07c6b64e | |
### export {{{ | |
PATH=$PATH:$HOME/.rvm/bin | |
HISTFILE=~/.zsh_history | |
HISTSIZE=20000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### default {{{ | |
set -s escape-time 0 | |
set-window-option -g utf8 on | |
set-window-option -g mode-keys vi | |
set-window-option -g automatic-rename on | |
set-option -g set-titles on | |
set-option -g base-index 1 | |
set-option -g pane-base-index 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
# github, bitbucket {{{ | |
dot=`curl -s http://vim-jp.org/reading-vimrc/json/archives.json | jq -r '.[] | .vimrc | .[] | .url' | sed -e 's/\/github.com/\/raw.githubusercontent.com/g' -e 's/\/blob//g' -e 's/\/gist.github.com/\/gist.githubusercontent.com\/thinca/g' -e 's/\/src/\/raw/g'` | |
line=`echo $dot | wc -l | tr -d ' '` | |
for (( i=1; i<=$line;i++ )) | |
do | |
repo=`echo $dot | awk "NR==$i"` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
dire=`echo $1 | sed -e 's@[^/]@@g'` | |
numb=`expr ${#dire} + 1` | |
find $* | cut -d / -f $numb |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Linux boot script for Android v5.0.2 | |
# OS Type : Arch Linux | |
# img : /sdcard/archlinux/archlinux-CORE.ext4.img | |
########################################### | |
# This is a function we use to stop the # | |
# script in case of errors # | |
########################################### | |
error_exit() { | |
echo "Error: $1" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- /usr/bin/packer 2014-08-11 10:43:24.000000000 +0200 | |
+++ /usr/bin/packer.xmw 2015-01-01 23:39:05.706239397 +0100 | |
@@ -328,7 +328,9 @@ | |
# Installation (makepkg and pacman) | |
if [[ $UID -eq 0 ]]; then | |
- makepkg $MAKEPKGOPTS --asroot -f | |
+ id pacman >/dev/null 2>/dev/null || useradd -r -d /var/empty pacman | |
+ chown -R pacman:pacman . | |
+ su -c "makepkg $MAKEPKGOPTS -f" pacman |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fu! s:peco_zsh_history() | |
sil! !cat ~/.zsh_history | peco | pbcopy | |
sil! redraw! | |
put | |
endf | |
com! PecoZshHistory call <SID>peco_zsh_history() | |
nn <Plug>(PecoZshHistory) :PecoZshHistory<CR> | |
nm <Leader>pe <Plug>(PecoZshHistory) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## zsh/growl integration: any command that takes longer than 5 seconds | |
## will trigger a growl notification when it completes. | |
case $OSTYPE in | |
darwin*) | |
notify="growlnotify" | |
notifyo=$notify" -m" | |
;; | |
linux*) | |
notify="notify-send" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# all-command {{{ | |
#sudo fastboot flash bootloader bootloader-flo-flo-04.05.img && sudo fastboot flash boot boot.img && sudo fastboot erase system && sudo fastboot flash system system.img && sudo fastboot flash recovery twrp-2.8.6.0-flo.img && sudo fastboot boot CF-Auto-Root-flo-razor-nexus7.img | |
# }}} | |
# android | |
# https://developers.google.com/android/nexus/images | |
# twrp |