Skip to content

Instantly share code, notes, and snippets.

https://gpp.tkchu.me/acknowledgements.html
@VetaZhang
VetaZhang / shell-prompt.md
Created December 25, 2023 08:23
My custom shell prompt
PROMPT='
%(?:%F{117}%f:%F{red}Ops.
%f)%B%F{117}%~%f%b [%*]
$(git_prompt_info)%F{green}➜%f '

# or
# NEWLINE=$'\n'
# PROMPT='${NEWLINE}%(?:%F{117}%f:%F{red}Ops.${NEWLINE}%f)%B%F{117}%~%f%b [%*]${NEWLINE}$(git_prompt_info)%F{green}➜%f '
@VetaZhang
VetaZhang / Switch-ctrl-and-alt.md
Last active December 25, 2023 08:26
Switch ctrl and alt in ubuntu

Alt 和 Ctrl 互换,将 Alt 键改成 Command 键

sudo vim /usr/share/X11/xkb/keycodes/evdev

找到LCTL和LALT, 将系统默认的LCTL=37, LALT=64的值互相交换即可。

terminal 终端的复制粘贴修改

终端输入: