Skip to content

Commit

Permalink
added ubuntu keymapping
Browse files Browse the repository at this point in the history
  • Loading branch information
hlee118 committed Dec 11, 2023
1 parent 541f1ca commit bf960a1
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions posts/_posts/2023-12-11-ubuntu-keymapping.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
layout: post
title: "Ubuntu Keymapping"
date: 2023-12-11
description: "우분투 키매핑 방법(Terminal Interrupt Key to 'alt+c')"
excerpt: ""
tags:
- Ubuntu
comments: true
---
### Abstract
- 회사에서 맥은 안주고 윈도우는 보안도 너무 많아서 우분투 세팅 시작
- stty, keybind 등을 적용하고자 함

### stty
http://coffeenix.net/doc/shell_programming/shell542.html

### Keybind 특수문자 정보
https://github.com/rothgar/mastering-zsh/blob/master/docs/helpers/bindkey.md

###

### Alt키 문제
- Alt mapping key가 "^[" 인데 이게 위/아래/왼쪽/오른쪽 키랑침겹침
- 안쓰는 Ctrl+J라는 키를 interrupt키로 만들고 alt+c를 Ctrl+J로 매핑시킴
```
stty intr '^J'
bindkey -s '^[c' '^J'
```

0 comments on commit bf960a1

Please sign in to comment.