Update 2024-01-24 15:14 OpenBSD/amd64-dalek
This commit is contained in:
parent
79ec0f73e2
commit
e89f434ece
18
.ksh/dotfiles.ksh
Normal file
18
.ksh/dotfiles.ksh
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
########################################################################
|
||||||
|
# DOTFILES WITH GIT
|
||||||
|
########################################################################
|
||||||
|
|
||||||
|
alias config='git --git-dir=${HOME}/.cfg/ --work-tree=${HOME}'
|
||||||
|
|
||||||
|
dotfiles_autoupdate() {
|
||||||
|
config add -u && \
|
||||||
|
config commit -m "Update $(date +"%Y-%m-%d %H:%M") \
|
||||||
|
$(uname -s)/$(uname -m)-$(hostname -s)" && config push
|
||||||
|
}
|
||||||
|
|
||||||
|
dotfiles_init() {
|
||||||
|
git --no-replace-objects clone --bare --depth 1 \
|
||||||
|
_gitea@git.uugrn.org:sdk/dotfiles.git $HOME/.cfg;
|
||||||
|
config config --local status.showUntrackedFiles no;
|
||||||
|
config checkout -f
|
||||||
|
}
|
5
.ksh/prompt-bash.ksh
Normal file
5
.ksh/prompt-bash.ksh
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
C1="\[$(tput setaf 241)\]" # gray
|
||||||
|
C2="\[$(tput setaf 37)\]" # green
|
||||||
|
C0="\[$(tput op)\]" # reset
|
||||||
|
|
||||||
|
PS1="${C1}[${C2}\h${C1}](${C2}${?}${C1})(${C2}\w${C1})\$ ${C0}"
|
10
.ksh/prompt-ksh.ksh
Normal file
10
.ksh/prompt-ksh.ksh
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
########################################################################
|
||||||
|
# PROMPT
|
||||||
|
########################################################################
|
||||||
|
|
||||||
|
C1="\[$(tput setaf 241)\]" # gray
|
||||||
|
#C2="\[$(tput setaf 208)\]" # orange
|
||||||
|
C2="\[$(tput setaf 37)\]" # green
|
||||||
|
C0="\[$(tput op)\]" # reset
|
||||||
|
x=$(print \\001) # hack from ksh(1)
|
||||||
|
PS1="$x\${C1}[\${C2}\h\${C1}](\${C2}\${?}\${C1})(\${C2}\W\${C1})\\$ \${C0}$x"
|
10
.ksh/prompt-oksh.ksh
Normal file
10
.ksh/prompt-oksh.ksh
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
########################################################################
|
||||||
|
# PROMPT
|
||||||
|
########################################################################
|
||||||
|
|
||||||
|
C1="\[$(tput setaf 241)\]" # gray
|
||||||
|
#C2="\[$(tput setaf 208)\]" # orange
|
||||||
|
C2="\[$(tput setaf 37)\]" # green
|
||||||
|
C0="\[$(tput op)\]" # reset
|
||||||
|
x=$(print \\001) # hack from ksh(1)
|
||||||
|
PS1="$x\${C1}[\${C2}\h\${C1}](\${C2}\${?}\${C1})(\${C2}\W\${C1})\\$ \${C0}$x"
|
Loading…
Reference in New Issue
Block a user