理头张的博客

首页标签归档关于
  • Use zsh as default login shell

    2020-12-23

    Zsh is a shell with rich features. Comparing with bash, zsh is more suitable for interactive use. But most linux distributions use bash as the default login shell. If you don’t want to type zsh every time in bash prompt, it’s time to change the default shell to zsh. We can simplely use command chsh (means ‘change shell’) to achieve the goal. Use the following command to detect where zsh located in and change default shell one-step.…

    #linux#zsh

  • [Vim Tips]设置Windows Terminal内vim的光标

    2020-11-07

    本文主要解决 vim 和 Windows Terminal 在光标上的一些兼容性问题。 设置光标的形状 在 Windows Terminal 里使用 wsl2 下的 vim,光标不能根据模式的变化而变化,比如 normal 模式下是方块(So…

    #vim#折腾

  • [Vim Tips]在vim和tmux中开启真彩色

    2020-11-06

    在 vim 和 tmux 中开启真彩色,可以获得更好的视觉体验。 在 vimrc 中加入下面的设置: if exists('+termguicolors') let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum" let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum" set termguicolors endif Tmux 需要在 .tmux.conf 配置文件里添加下面的内容: set -g default-terminal tmux-256color #…

    #vim#tmux#折腾

  • 不安装桌面环境在WSL2中使用GUI程序

    2020-11-03

    最近要用到 Selenium,我的开发环境在 WSL2 下,需要在 WSL2 下安装 Chrome 和 ChromeDriver,所以就有了这篇记录。 本文的目标是在 WSL2 下使用 GUI 程序…

    #wsl2#linux

  • 读《八月之光》

    2020-07-15

    面对《八月之光》末页的时候,我想起第一次看到“文学”与“文体”这两个名词的那个下午。在冯唐的一本文集中,什么是好的文字,什么是好的文体,影影…

    #读书

  • 读《我是猫》与《少爷》

    2020-06-11

    我读日本的文学作品不多,夏目漱石就属于那种我“久仰”的作家:只在其他作家的笔下见到过,便产生了一种景仰之情,却一直未曾拜读他的作品。说“未曾…

    #读书

  • 使 MPC-HC 使用独显

    2020-06-10

    MPC-HC 是 Windows 平台上的一款功能强大的、开源的影音播放器,虽然界面复古了点,但其内置 LAVFilters,可以搭配其他的一些渲染器、滤镜等,打造“最强…

    #折腾#好软#MPC-HC

  • 1
  • 2
  • 3
  • 4
  • 5
  • »

©2017-2022 理头张

CC BY-NC-SA 4.0 | RSS

Powered by Hugo and the Notepadium-mod

^ TOP ^