diff --git a/.zalias b/.zalias new file mode 120000 index 0000000..5a3fd9c --- /dev/null +++ b/.zalias @@ -0,0 +1 @@ +.zprezto/runcoms/zalias \ No newline at end of file diff --git a/.zprezto/modules/prompt/functions/prompt_abra_setup b/.zprezto/modules/prompt/functions/prompt_abra_setup index f1be474..51b94bd 100644 --- a/.zprezto/modules/prompt/functions/prompt_abra_setup +++ b/.zprezto/modules/prompt/functions/prompt_abra_setup @@ -23,7 +23,7 @@ function prompt_abra_setup { # Set editor-info parameters. 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. 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' - PROMPT='%F{cyan}%c%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' + 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@%2m%f%b${git_info[rprompt]} %F{blue}%*%f' } prompt_abra_setup "$@" diff --git a/.zprezto/runcoms/zalias b/.zprezto/runcoms/zalias new file mode 100644 index 0000000..7e97c2f --- /dev/null +++ b/.zprezto/runcoms/zalias @@ -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" diff --git a/.zprezto/runcoms/zshrc b/.zprezto/runcoms/zshrc index b046c3c..9118c8e 100644 --- a/.zprezto/runcoms/zshrc +++ b/.zprezto/runcoms/zshrc @@ -42,8 +42,9 @@ bindkey '\e[4~' end-of-line bindkey "\eOH" beginning-of-line bindkey "\eOF" end-of-line +. ~/.zalias -# --------------------------------------- ALIASES -------------------------------------------------- +export R="$HOME/work/google3" # aliases alias g="git" @@ -89,7 +90,8 @@ function .g-init() { .g config --local status.showUntrackedFiles no .g remote add origin ssh://dedi/root/.dotgit 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() {