File: D1804.bashrc

package info (click to toggle)
ble.sh 0.4.0~git20250321.d4c812b-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 12,516 kB
  • sloc: sh: 71,367; awk: 1,316; cpp: 750; ansic: 186; javascript: 43; makefile: 35
file content (14 lines) | stat: -rw-r--r-- 297 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# bashrc

HISTFILE=A
source out/ble.sh
blehook ADDHISTORY=myfunction
function myfunction { [[ $1 != ' '* ]]; }
#function myfunction { false; }
#function myfunction { echo "[$1,$command](${FUNCNAME[*]})"; }
function myfunction {
  if [[ $1 == ' '* ]]; then
    history -s "#$1"
    return 1
  fi
}