Codebase list poshc2 / kali/latest resources / scripts / posh-config
kali/latest

Tree @kali/latest (Download .tar.gz)

posh-config @kali/latestraw · history · blame

#!/bin/bash

source /usr/local/bin/_posh-common
get_posh_project_dir

if [[ "$EDITOR" != "" ]]; then
    sudo $EDITOR "$POSH_PROJECT_DIR/config.yml"
elif [[ "$*" == *"--nano"* ]]; then
    sudo nano "$POSH_PROJECT_DIR/config.yml"
else
    sudo vim "$POSH_PROJECT_DIR/config.yml"
fi