stuff
This commit is contained in:
@ -15,7 +15,7 @@ set-window-option -g pane-base-index 1
|
|||||||
|
|
||||||
set -g default-terminal "screen-256color"
|
set -g default-terminal "screen-256color"
|
||||||
set -ga terminal-overrides ",xterm-256color*:Tc" # tell Tmux that outside terminal supports true color
|
set -ga terminal-overrides ",xterm-256color*:Tc" # tell Tmux that outside terminal supports true color
|
||||||
set -g default-shell zsh
|
# set -g default-shell zsh
|
||||||
|
|
||||||
# force a reload of the config file
|
# force a reload of the config file
|
||||||
unbind r
|
unbind r
|
||||||
|
@ -89,7 +89,7 @@ get_current_activity() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
cl_search() {
|
cl_search() {
|
||||||
hg whatsout | xargs -i sh -c "echo {} && grep $1 {}"
|
hg whatsout | xargs -i sh -c "echo {} && grep '$1' {}"
|
||||||
}
|
}
|
||||||
|
|
||||||
cl_replace() {
|
cl_replace() {
|
||||||
@ -106,6 +106,26 @@ objfs_cp() {
|
|||||||
fileutil cp -f $1 $tmp && unzip $tmp $2 && unlink $tmp
|
fileutil cp -f $1 $tmp && unzip $tmp $2 && unlink $tmp
|
||||||
}
|
}
|
||||||
|
|
||||||
|
from_cloud(){
|
||||||
|
scp baggins.c.googlers.com:$1 ~/Downloads/
|
||||||
|
echo "Saved $1 to downloads"
|
||||||
|
}
|
||||||
|
|
||||||
|
to_cloud(){
|
||||||
|
scp $1 baggins.c.googlers.com:~/Downloads
|
||||||
|
echo "Saved $1 to downloads"
|
||||||
|
}
|
||||||
|
|
||||||
|
from_mac(){
|
||||||
|
scp cnieves-macbookpro.roam.internal:$1 ~/Downloads/
|
||||||
|
echo "Saved $1 to downloads"
|
||||||
|
}
|
||||||
|
|
||||||
|
to_mac(){
|
||||||
|
scp $1 cnieves-macbookpro.roam.internal:~/Downloads
|
||||||
|
echo "Saved $1 to downloads"
|
||||||
|
}
|
||||||
|
|
||||||
alias acid=/google/bin/releases/mobile-devx-platform/acid/acid
|
alias acid=/google/bin/releases/mobile-devx-platform/acid/acid
|
||||||
alias apido='/google/data/ro/teams/oneplatform/apido'
|
alias apido='/google/data/ro/teams/oneplatform/apido'
|
||||||
alias bugs=/google/data/rw/users/mk/mkannan/www/bin/bugs
|
alias bugs=/google/data/rw/users/mk/mkannan/www/bin/bugs
|
||||||
|
@ -58,5 +58,5 @@ source ~/g3path.zsh
|
|||||||
source /etc/bash_completion.d/hgd
|
source /etc/bash_completion.d/hgd
|
||||||
|
|
||||||
export HGSHORT_CMDS="ls cat head tail mv cp rm chmod g4 diff merge patch meld trim less more"
|
export HGSHORT_CMDS="ls cat head tail mv cp rm chmod g4 diff merge patch meld trim less more"
|
||||||
alias hgd='source /google/src/head/depot/google3/experimental/fig_contrib/hgshort/hgd.sh'
|
|
||||||
export ACID_STARTUP_SCRIPT_PATH=~/acid_startup.sh
|
export ACID_STARTUP_SCRIPT_PATH=~/acid_startup.sh
|
||||||
|
alias hgd='source /google/src/head/depot/google3/experimental/fig_contrib/hgshort/hgd.sh'
|
||||||
|
12
zsh/.zshrc
12
zsh/.zshrc
@ -1,15 +1,13 @@
|
|||||||
# set -xv
|
# set -xv
|
||||||
|
|
||||||
# source ~/fig_prompt
|
# source ~/fig_prompt
|
||||||
export ZSH="$HOME/.oh-my-zsh"
|
|
||||||
source $ZSH/oh-my-zsh.sh
|
|
||||||
|
|
||||||
if [ -f ${HOME}/.zplug/init.zsh ]; then
|
if [ -f ${HOME}/.zplug/init.zsh ]; then
|
||||||
source ${HOME}/.zplug/init.zsh
|
source ${HOME}/.zplug/init.zsh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# zplug "zsh-users/zsh-syntax-highlighting", defer:2
|
zplug "zsh-users/zsh-syntax-highlighting", defer:2
|
||||||
# zplug "mafredri/zsh-async", from:"github", use:"async.zsh"
|
zplug "mafredri/zsh-async", from:"github", use:"async.zsh"
|
||||||
|
zplug load
|
||||||
|
|
||||||
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
|
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
|
||||||
# Initialization code that may require console input (password prompts, [y/n]
|
# Initialization code that may require console input (password prompts, [y/n]
|
||||||
@ -19,7 +17,7 @@ if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]
|
|||||||
fi
|
fi
|
||||||
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
|
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
|
||||||
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
||||||
plugins=(zsh-async zsh-autosuggestions)
|
plugins=(zsh-autosuggestions)
|
||||||
|
|
||||||
ZSH_THEME=powerlevel10k/powerlevel10k
|
ZSH_THEME=powerlevel10k/powerlevel10k
|
||||||
DISABLE_AUTO_TITLE=true
|
DISABLE_AUTO_TITLE=true
|
||||||
@ -238,3 +236,5 @@ autoload -Uz add-zsh-hook
|
|||||||
export FZF_DEFAULT_OPTS="--preview 'echo {}' --preview-window down:3:wrap --bind ?:toggle-preview"
|
export FZF_DEFAULT_OPTS="--preview 'echo {}' --preview-window down:3:wrap --bind ?:toggle-preview"
|
||||||
|
|
||||||
source ~/.bash_profile
|
source ~/.bash_profile
|
||||||
|
export ZSH="$HOME/.oh-my-zsh"
|
||||||
|
source $ZSH/oh-my-zsh.sh
|
||||||
|
Reference in New Issue
Block a user