You've already forked personal-linux-config
Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
759f0c9494 | |||
39cb410c3e | |||
d792ce8809 | |||
dc984eb128 | |||
5d6c22f1b8 | |||
c53a382a4f |
@@ -8,8 +8,10 @@ alias sshfingerprint='ssh-keygen -lf'
|
||||
alias nocomments='grep -vE "^$|^#|^;"'
|
||||
alias newrepo='bash <(curl -s https://get.bjphoster.com/new-git-repo.sh)'
|
||||
alias newansibleworkspace='bash <(curl -s https://get.bjphoster.com/new-ansible-workspace.sh)'
|
||||
alias infinitenothing='while true; do sleep 1; done'
|
||||
|
||||
alias sambaserver='docker run -it --rm --network host -p 137:137 -p 138:138 -p 139:139 -p 445:445 -v `pwd`:/share dperson/samba -n -p -s "sambashare;/share;yes;no;no;shareuser" -w "WORKGROUP"'
|
||||
alias sambaserver='docker run -dit --rm --name sambaserver -p 137:137 -p 138:138 -p 139:139 -p 445:445 -v `pwd`:/share dperson/samba -n -p -u "user;P4ssw0rd" -s "share;/share;yes;no;yes;user;user" -w "WORKGROUP"'
|
||||
alias sambastop='docker stop sambaserver; docker rm sambaserver'
|
||||
alias acme.sh='docker run -it --rm -v ~/acme.sh:/acme.sh neilpang/acme.sh'
|
||||
alias termbin='nc termbin.com 9999'
|
||||
alias dnsversion='dig txt chaos version.bind'
|
||||
|
@@ -1,4 +1,7 @@
|
||||
GIT_FUNCTIONS=true
|
||||
command -v git &>/dev/null
|
||||
if [ $? -eq 0 ]; then
|
||||
GIT_FUNCTIONS=true
|
||||
fi
|
||||
|
||||
# Spaced
|
||||
#PS1="${LIGHTBLUE}[ ${LIGHTRED}\u ${LIGHTBLUE}@ ${LIGHTBROWN}$(hostname --fqdn) ${LIGHTBLUE}] ${LIGHTPURPLE}( ${GREEN}\w ${LIGHTPURPLE}) "
|
||||
@@ -7,7 +10,7 @@ GIT_FUNCTIONS=true
|
||||
# another version I really like
|
||||
PS1="${PURPLE}\# ${LIGHTBLUE}{${LIGHTGREEN}\u${BROWN}@${LIGHTGREEN}\$(hostname --fqdn)${LIGHTBLUE}} ${LIGHTPURPLE}[${CYAN}\w${LIGHTPURPLE}] "
|
||||
|
||||
if [ $GIT_FUNCTIONS ]; then
|
||||
if [ $GIT_FUNCTIONS = "true" ]; then
|
||||
#PS1="$PS1${LIGHTPURPLE}[${LIGHTCYAN}$(__git_prompt)${LIGHTPURPLE}]"
|
||||
PS1="$PS1${LIGHTBROWN}(${LIGHTCYAN}\$(__git_prompt)${LIGHTBROWN}) "
|
||||
fi
|
||||
|
@@ -1,11 +1,14 @@
|
||||
GIT_FUNCTIONS=true
|
||||
command -v git &>/dev/null
|
||||
if [ $? -eq 0 ]; then
|
||||
GIT_FUNCTIONS=true
|
||||
fi
|
||||
|
||||
# Spaced
|
||||
#PS1="${LIGHTBLUE}[ ${LIGHTRED}\u ${LIGHTBLUE}@ ${LIGHTBROWN}$(hostname --fqdn) ${LIGHTBLUE}] ${LIGHTPURPLE}( ${GREEN}\w ${LIGHTPURPLE}) "
|
||||
# Not spaced
|
||||
PS1="${LIGHTBLUE}[${LIGHTRED}\u${LIGHTBLUE}@${LIGHTBROWN}$(hostname --fqdn)${LIGHTBLUE}]${LIGHTPURPLE}(${GREEN}\w${LIGHTPURPLE})"
|
||||
|
||||
if [ $GIT_FUNCTIONS ]; then
|
||||
if [ $GIT_FUNCTIONS = "true" ]; then
|
||||
#PS1="$PS1${LIGHTPURPLE}[${LIGHTCYAN}$(__git_prompt)${LIGHTPURPLE}]"
|
||||
PS1="$PS1${LIGHTBROWN}(${LIGHTCYAN}\$(__git_prompt)${LIGHTBROWN}) "
|
||||
fi
|
||||
|
@@ -18,7 +18,7 @@ _bashrc_present() {
|
||||
_arguments() {
|
||||
if [ "$(_bashrc_present)" = true ]; then
|
||||
PRESENT=true
|
||||
CURRENT_FANCYFY="$(grep TERMINAL_FANCYFY /home/bryanpedini/.bashrc | sed 's/.*=//')"
|
||||
CURRENT_FANCYFY="$(grep TERMINAL_FANCYFY ~/.bashrc | sed 's/.*=//')"
|
||||
fi
|
||||
for PARM in "$@"; do
|
||||
if [ "${PARM}" = "--server" ]; then
|
||||
@@ -43,7 +43,7 @@ _help() {
|
||||
echo " --force"
|
||||
echo " Force the reinstallation of the files"
|
||||
echo " --delete"
|
||||
echo " Delete the reference in ~/.bashrc"
|
||||
echo " Delete the reference in ${BASHRC}"
|
||||
echo " --move"
|
||||
echo " Create a new reference if the location of this folder has been changed"
|
||||
echo " --server"
|
||||
|
Reference in New Issue
Block a user