Clean up
This commit is contained in:
parent
a868f6dbb9
commit
84de9a8627
11
zsh/aliases
11
zsh/aliases
|
@ -8,12 +8,7 @@ alias sudo='sudo '
|
||||||
|
|
||||||
# Homebrew
|
# Homebrew
|
||||||
alias br='brew'
|
alias br='brew'
|
||||||
alias bru='brew update && brew upgrade'
|
alias bru='brew update && brew upgrade --all'
|
||||||
update() {
|
|
||||||
brew update && brew upgrade --all
|
|
||||||
cd ~/.emacs.d && git pull && make
|
|
||||||
cd ~/.dotfiles && git pull
|
|
||||||
}
|
|
||||||
|
|
||||||
# Tools
|
# Tools
|
||||||
alias codekit='open -a CodeKit'
|
alias codekit='open -a CodeKit'
|
||||||
|
@ -29,7 +24,8 @@ if is-callable 'transmission-remote'; then
|
||||||
alias bt='transmission-remote server'
|
alias bt='transmission-remote server'
|
||||||
|
|
||||||
# pretty print torrent list on remote server
|
# pretty print torrent list on remote server
|
||||||
function btl {
|
btl() {
|
||||||
|
local results
|
||||||
results=`transmission-remote server -l | \
|
results=`transmission-remote server -l | \
|
||||||
awk 'NR > 1 { s = ""; for (i = 10; i <= NF; i++) s = s $i " "; print $9 " | " s }' | \
|
awk 'NR > 1 { s = ""; for (i = 10; i <= NF; i++) s = s $i " "; print $9 " | " s }' | \
|
||||||
sed '$d' | \
|
sed '$d' | \
|
||||||
|
@ -47,6 +43,7 @@ fi
|
||||||
unalias e
|
unalias e
|
||||||
v() { [ $# -eq 0 ] && vim . || vim $@ }
|
v() { [ $# -eq 0 ] && vim . || vim $@ }
|
||||||
e() { # emacs
|
e() { # emacs
|
||||||
|
local input
|
||||||
[ ! $# -eq 0 ] && input=$@
|
[ ! $# -eq 0 ] && input=$@
|
||||||
emacsclient -n ${input:-.}
|
emacsclient -n ${input:-.}
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,9 +46,9 @@ function prompt_v0_setup {
|
||||||
|
|
||||||
# Set editor-info parameters.
|
# Set editor-info parameters.
|
||||||
zstyle ':prezto:module:editor:info:completing' format '%B%F{red}...%f%b'
|
zstyle ':prezto:module:editor:info:completing' format '%B%F{red}...%f%b'
|
||||||
zstyle ':prezto:module:editor:info:keymap:primary' format '%B%F{red}$%f%b'
|
zstyle ':prezto:module:editor:info:keymap:primary' format '%B%F{red}❯%f%b'
|
||||||
zstyle ':prezto:module:editor:info:keymap:primary:overwrite' format '%F{red}♺%f'
|
zstyle ':prezto:module:editor:info:keymap:primary:overwrite' format '%F{red}♺%f'
|
||||||
zstyle ':prezto:module:editor:info:keymap:alternate' format '%B%F{green}#%f%b'
|
zstyle ':prezto:module:editor:info:keymap:alternate' format '%B%F{green}❯%f%b'
|
||||||
|
|
||||||
# Add newline before prompt
|
# Add newline before prompt
|
||||||
precmd() { print "" }
|
precmd() { print "" }
|
||||||
|
|
1
zshrc
1
zshrc
|
@ -26,6 +26,7 @@ if [ -d ~/.pyenv ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
export ANDROID_HOME=/usr/local/opt/android-sdk
|
export ANDROID_HOME=/usr/local/opt/android-sdk
|
||||||
|
export ANDROID_SDK=/usr/local/Cellar/android-sdk/24.2
|
||||||
export PATH=$ANDROID_HOME/platform-tools:$ANDROID_HOME/tools:$PATH
|
export PATH=$ANDROID_HOME/platform-tools:$ANDROID_HOME/tools:$PATH
|
||||||
|
|
||||||
export CXXFLAGS='-I/usr/local/include -L/usr/local/lib'
|
export CXXFLAGS='-I/usr/local/include -L/usr/local/lib'
|
||||||
|
|
Loading…
Reference in a new issue