what
This commit is contained in:
@@ -23,7 +23,7 @@ function prompt_abra_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{green}➜%f:%F{red}➜%f)%b'
|
zstyle ':prezto:module:editor:info:keymap:primary' format ' %B%(?:%F{green}➤%f:%F{red}➤%f)%b'
|
||||||
|
|
||||||
# Set git-info parameters.
|
# Set git-info parameters.
|
||||||
zstyle ':prezto:module:git:info' verbose 'yes'
|
zstyle ':prezto:module:git:info' verbose 'yes'
|
||||||
@@ -45,8 +45,8 @@ function prompt_abra_setup {
|
|||||||
'rprompt' '%A%B%S%a%d%m%r%U%u'
|
'rprompt' '%A%B%S%a%d%m%r%U%u'
|
||||||
|
|
||||||
|
|
||||||
PROMPT='%F{cyan}%c%f${git_info:+${(e)git_info[prompt]}}%(!. %B%F{red}#%f%b.)${editor_info[keymap]} '
|
PROMPT='%F{cyan}%3~%f${git_info:+${(e)git_info[prompt]}}%(!. %B%F{red}#%f%b.)${editor_info[keymap]} '
|
||||||
RPROMPT='%(?::%F{red}%?%f )%B%F{green}%n@%m%f%b${git_info[rprompt]} %F{blue}%*%f'
|
RPROMPT='%(?::%F{red}%?%f )%B%F{green}%n@%2m%f%b${git_info[rprompt]} %F{blue}%*%f'
|
||||||
}
|
}
|
||||||
|
|
||||||
prompt_abra_setup "$@"
|
prompt_abra_setup "$@"
|
||||||
|
45
.zprezto/runcoms/zalias
Normal file
45
.zprezto/runcoms/zalias
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
alias g="git"
|
||||||
|
alias a="git add --all :/"
|
||||||
|
alias b="git branch"
|
||||||
|
alias c="git commit -am"
|
||||||
|
alias ch="git checkout"
|
||||||
|
alias pull="git pull"
|
||||||
|
# alias m="git merge --no-ff"
|
||||||
|
alias rb="git reset HEAD --hard"
|
||||||
|
alias s="git status"
|
||||||
|
alias st="git stash"
|
||||||
|
|
||||||
|
alias g5="git5"
|
||||||
|
alias e="git5 export"
|
||||||
|
alias m="git5 merge --no-ff"
|
||||||
|
alias ma="git5 mail -m"
|
||||||
|
alias push="git5 submit -xy"
|
||||||
|
# alias push="git submit -xy"
|
||||||
|
alias dc="a && c \"dummy comment\""
|
||||||
|
|
||||||
|
alias zshconfig="subl ~/.zshrc"
|
||||||
|
alias zshreload="exec zsh"
|
||||||
|
|
||||||
|
alias tarc="tar cvzf"
|
||||||
|
alias rcp="rsync --partial --progress --append --rsh=ssh -r -h"
|
||||||
|
alias rmv="rsync --partial --progress --append --rsh=ssh -r -h --remove-sent-files"
|
||||||
|
|
||||||
|
alias pythonserve="sudo python -m SimpleHTTPServer 80"
|
||||||
|
|
||||||
|
# replace
|
||||||
|
alias sg='perl -0pe'
|
||||||
|
|
||||||
|
alias clbin="curl -F 'clbin=<-' https://clbin.com"
|
||||||
|
|
||||||
|
alias afs="unmount-abra0; mount-abra0;"
|
||||||
|
|
||||||
|
alias .g='git --git-dir=$HOME/.dotgit/ --work-tree=$HOME'
|
||||||
|
alias .gp='.g commit -am "auto" && .g push'
|
||||||
|
alias .sg='git --git-dir=/var/www/git.abra.me/dot.git --work-tree=$HOME'
|
||||||
|
|
||||||
|
alias f1sql="/google/data/ro/projects/storage/f1/tools/f1-sql"
|
||||||
|
|
||||||
|
alias t="task"
|
||||||
|
|
||||||
|
alias revs="ssh abra0 'tail -f -n0 ~/reverse_shell' | tee -a .rem_history| zsh -s"
|
||||||
|
alias nika_pop="echo \"afplay ~/tmp/nika.mp3\" > ~/reverse_shell"
|
@@ -42,8 +42,9 @@ bindkey '\e[4~' end-of-line
|
|||||||
bindkey "\eOH" beginning-of-line
|
bindkey "\eOH" beginning-of-line
|
||||||
bindkey "\eOF" end-of-line
|
bindkey "\eOF" end-of-line
|
||||||
|
|
||||||
|
. ~/.zalias
|
||||||
|
|
||||||
# --------------------------------------- ALIASES --------------------------------------------------
|
export R="$HOME/work/google3"
|
||||||
|
|
||||||
# aliases
|
# aliases
|
||||||
alias g="git"
|
alias g="git"
|
||||||
@@ -89,7 +90,8 @@ function .g-init() {
|
|||||||
.g config --local status.showUntrackedFiles no
|
.g config --local status.showUntrackedFiles no
|
||||||
.g remote add origin ssh://dedi/root/.dotgit
|
.g remote add origin ssh://dedi/root/.dotgit
|
||||||
git config --global user.name "Your Name"
|
git config --global user.name "Your Name"
|
||||||
git config --global user.email you@example.com
|
git config --global user.email you@example.com
|
||||||
|
.g remote add origin ssh://dedi/var/www/git.abra.me/dot.git
|
||||||
}
|
}
|
||||||
|
|
||||||
function twitch() {
|
function twitch() {
|
||||||
|
Reference in New Issue
Block a user