Skip to content

Instantly share code, notes, and snippets.

@0racle
Last active May 4, 2022 00:19
Show Gist options
  • Save 0racle/bdaeb945cf42de317a48db7b1529f0fe to your computer and use it in GitHub Desktop.
Save 0racle/bdaeb945cf42de317a48db7b1529f0fe to your computer and use it in GitHub Desktop.
inputrc file for Dyalog APL prefix mappings (à la TryAPL.org)
# If you want to use this with rlwrap, the following command works for me
# > INPUTRC='~/.dyalog/inputrc' rlwrap -a dyalog -s -b
# Which can then be aliased to whatever you like
"`[": "←"
"`-": "×"
"`=": "÷"
"`p": "*"
"`*": "⍟"
"`+": "⌹"
"`o": "○"
"`_": "!"
"`q": "?"
"`m": "|"
"`s": "⌈"
"`d": "⌊"
"`b": "⊥"
"`n": "⊤"
"`|": "⊣"
"`\\": "⊢"
"`5": "="
"`8": "≠"
"`4": "≤"
"`3": "<"
"`7": ">"
"`6": "≥"
"`:": "≡"
"`\"": "≢"
"`9": "∨"
"`0": "∧"
"`)": "⍲"
"`(": "⍱"
"`y": "↑"
"`u": "↓"
"`z": "⊂"
"`x": "⊃"
"`Z": "⊆"
"`L": "⌷"
"`$": "⍋"
"`#": "⍒"
"`i": "⍳"
"`I": "⍸"
"`e": "∊"
"`E": "⍷"
"`v": "∪"
"`c": "∩"
"`t": "~"
"`/": "⌿"
"`.": "⍀"
"`<": "⍪"
"`r": "⍴"
"`%": "⌽"
"`&": "⊖"
"`^": "⍉"
"`1": "¨"
"`T": "⍨"
"`P": "⍣"
"`j": "∘"
"`J": "⍤"
"`O": "⍥"
"`l": "⎕"
"`?": "⍠"
"`K": "⌸"
"`~": "⌺"
"`!": "⌶"
"`;": "⍎"
"`'": "⍕"
"``": "⋄"
"`,": "⍝"
"`w": "⍵"
"`a": "⍺"
"`g": "∇"
"`2": "¯"
"`}": "⍬"
"`g": "∇"
"`G": "⍢"
"`>": "⍙"
"`N": "¤"
"`M": "∥"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment