commit
b21f48ba1e
@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
#mymodel=`cat /sys/firmware/devicetree/base/model 2>/dev/null`
|
||||||
|
|
||||||
|
# https://stackoverflow.com/a/46163991
|
||||||
|
|
||||||
|
model=""
|
||||||
|
while IFS= read -r -d '' substring || [[ $substring ]]; do
|
||||||
|
model+="$substring"
|
||||||
|
done </proc/device-tree/model
|
||||||
|
|
||||||
|
|
||||||
|
echo $model
|
@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
if [[ -z $1 ]]; then
|
||||||
|
/opt/vc/bin/vcgencmd measure_temp | sed "s/'/°/g"
|
||||||
|
else
|
||||||
|
/opt/vc/bin/vcgencmd measure_temp | sed "s/'/°/g" | cut -d= -f2
|
||||||
|
fi
|
@ -0,0 +1,4 @@
|
|||||||
|
source $VIMRUNTIME/defaults.vim
|
||||||
|
set shiftwidth=1
|
||||||
|
set mouse=
|
||||||
|
set ttymouse=
|
@ -0,0 +1,4 @@
|
|||||||
|
me=`whoami`
|
||||||
|
|
||||||
|
PROMPT_COMMAND='_dir=`pwd`;if [ ${#_dir} -ge 35 ]; then _mydir=`pwd | cut -c1-16`; _mydir=${_mydir}.../`pwd | rev | cut -d/ -f1 | rev`; else _mydir=`pwd`; fi; _mydir=`echo $_mydir | sed "s/^\/home\/$me/~/g"`; PS1="\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u\[\033[1;33m\]@\[\033[1;32m\]\h\[\033[00m\]:\[\033[0;36m\]$_mydir\[\033[00m\]\$ "'
|
||||||
|
|
Loading…
Reference in new issue