Moulinette params
This commit is contained in:
parent
3b4068fac9
commit
00cf30350f
23
.bashrc
23
.bashrc
|
@ -22,14 +22,14 @@ xset r rate 200 60
|
||||||
|
|
||||||
PATH="${PATH}:/nfs/homes/tischmid/.local/bin"
|
PATH="${PATH}:/nfs/homes/tischmid/.local/bin"
|
||||||
|
|
||||||
if [ -f ~/git-prompt.sh ]; then
|
# if [ ! -f ~/git-prompt.sh ] ; then
|
||||||
. ~/git-prompt.sh
|
# curl --silent --location 'https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh' -o "~/git-prompt.sh"
|
||||||
else
|
# fi
|
||||||
source <(curl --silent --location 'https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh')
|
#
|
||||||
fi
|
# . ~/git-prompt.sh
|
||||||
|
# export GIT_PS1_SHOWDIRTYSTATE=1
|
||||||
export GIT_PS1_SHOWDIRTYSTATE=1
|
# PS1='\[\033[31m\]\u\[\033[m\]@\[\033[32m\]\h\[\033[m\] \[\033[33m\][\w]\[\033[m\]\[\033[36m\]$(__git_ps1 " (%s)")\[\033[m\]\n$ '
|
||||||
PS1='\[\033[31m\]\u\[\033[m\]@\[\033[32m\]\h\[\033[m\] \[\033[33m\][\w]\[\033[m\]\[\033[36m\]$(__git_ps1 " (%s)")\[\033[m\]\n$ '
|
PS1='\[\033[31m\]\u\[\033[m\]@\[\033[32m\]\h\[\033[m\] \[\033[33m\][\w]\[\033[m\]\[\033[36m\]\[\033[m\]\n$ '
|
||||||
|
|
||||||
##-----------------------------------------------------
|
##-----------------------------------------------------
|
||||||
## synth-shell-greeter.sh
|
## synth-shell-greeter.sh
|
||||||
|
@ -97,6 +97,7 @@ timo_moulinette () {
|
||||||
# Set params
|
# Set params
|
||||||
subject="${1}"
|
subject="${1}"
|
||||||
ex="${2}"
|
ex="${2}"
|
||||||
|
extras="${3}"
|
||||||
|
|
||||||
# Arghandle
|
# Arghandle
|
||||||
if [ -z "${subject}" ] ; then
|
if [ -z "${subject}" ] ; then
|
||||||
|
@ -199,11 +200,15 @@ timo_moulinette () {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Delete testfile
|
# Delete testfile
|
||||||
|
if [ "$(printf '%s' "${extras}" | sed 's/keep-test//g')" = "${extras}" ] ; then
|
||||||
rm -f -- "${download_file_name}"
|
rm -f -- "${download_file_name}"
|
||||||
|
fi
|
||||||
|
|
||||||
# Run binary
|
# Run binary
|
||||||
./${out_binary}
|
./${out_binary}
|
||||||
# rm -f -- "./${out_binary}"
|
if [ "${?}" = "0" ] && [ "$(printf '%s' "${extras}" | sed 's/keep-binary//g')" = "${extras}" ] ; then
|
||||||
|
rm -f -- "./${out_binary}"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
prev () {
|
prev () {
|
||||||
|
|
Loading…
Reference in New Issue