Adds msfvenom completion with payloads
Also some small fzf and prompt changes
This commit is contained in:
parent
5e7c9b7183
commit
e6f453a36d
4 changed files with 268 additions and 2 deletions
|
@ -15,6 +15,10 @@ bindkey -v '^?' backward-delete-char
|
|||
|
||||
compdef sshrc=ssh
|
||||
|
||||
# Vim completion
|
||||
compdef v=vim
|
||||
compdef vi=vim
|
||||
|
||||
autoload bashcompinit
|
||||
bashcompinit
|
||||
_wp_complete() {
|
||||
|
@ -39,4 +43,6 @@ complete -o nospace -F _wp_complete wp
|
|||
# Include hidden files in autocomplete:
|
||||
_comp_options+=(globdots)
|
||||
|
||||
fpath=("$ZSH_FOLDER/completion" $fpath)
|
||||
|
||||
#source "$ZSH_FOLDER/plugins/fzf-tab/fzf-tab.zsh"
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
# this rg command will get a list of files that are not in gitignore or similar
|
||||
export FZF_DEFAULT_COMMAND="fd --type f --hidden --follow --exclude .git --exclude .PlayOnLinux --exclude \"PlayOnLinux\'s virtual drives\""
|
||||
export FZF_DEFAULT_COMMAND="fd --type f --hidden --follow --color=always --exclude .git --exclude .PlayOnLinux --exclude \"PlayOnLinux\'s virtual drives\""
|
||||
export FZF_DEFAULT_OPTS="--reverse --height 40%"
|
||||
export FZF_CTRL_R_OPTS=""
|
||||
# this is the argument completeion optionm, use the same command
|
||||
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
|
||||
export FZF_CTRL_T_OPTS="$FZF_DEFAULT_OPTS --preview \"bat --style=numbers --color=always {}\""
|
||||
export FZF_CTRL_T_OPTS="$FZF_DEFAULT_OPTS --ansi --preview \"bat --style=numbers --color=always {}\""
|
||||
if [ -e /usr/share/fzf/key-bindings.zsh ]; then
|
||||
source /usr/share/fzf/key-bindings.zsh
|
||||
source /usr/share/fzf/completion.zsh
|
||||
|
|
|
@ -11,6 +11,7 @@ prompt_dir(){
|
|||
wpThemesIcon=".t."
|
||||
siteIcon=" "
|
||||
wpSiteIcon=" "
|
||||
gitReposIcon=""
|
||||
magentoSiteIcon=" "
|
||||
dropboxIcon=""
|
||||
seperator=" "
|
||||
|
@ -63,6 +64,9 @@ prompt_dir(){
|
|||
# Replace Dropbox with icon
|
||||
current_path=$(echo $current_path | sed -r -e "s/$homeIcon\/Dropbox/$dropboxIcon/")
|
||||
|
||||
# Replace GitRepos with icon
|
||||
current_path=$(echo $current_path | sed -r -e "s/$homeIcon\/GitRepos/$gitReposIcon/")
|
||||
|
||||
# Set the root
|
||||
current_path=$(echo $current_path | sed -r -e "s/^\//$root/g")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue