diff --git a/README.md b/README.md index 2a83a66..ac8604f 100644 --- a/README.md +++ b/README.md @@ -2,3 +2,17 @@ Dotfiles I use on my systems, using [dotbot](https://github.com/anishathalye/dotbot) for management. +## Requirements + +- `zsh` +- `vim` +- `fcitx5` +- `kitty` +- `powerline` +- `ttf-hack-nerd` + +## Optional requirements + +- `lsd` (or `eza`) +- `bat` + diff --git a/config/kitty/kitty.conf b/config/kitty/kitty.conf index 0ce755e..6ea4e5d 100644 --- a/config/kitty/kitty.conf +++ b/config/kitty/kitty.conf @@ -8,10 +8,10 @@ scrollback_lines 10000 cursor_shape block -font_family "Source Code Pro" -bold_font auto -italic_font auto -bold_italic_font auto +font_family "Hack Nerd Font Mono" +bold_font Hack Nerd Font Mono Bold +italic_font Hack Nerd Font Mono Italic +bold_italic_font Hack Nerd Font Mono Bold Italic font_size 10 disable_ligatures always diff --git a/zshrc b/zshrc index a74456e..9267744 100644 --- a/zshrc +++ b/zshrc @@ -4,13 +4,35 @@ stty -ixon alias fuck='sudo $(fc -l -n -1)' -alias ll='ls -lav --color=auto' -alias l='ls -lv --color=auto' -alias ls='ls --color=auto' + +if command -v lsd >/dev/null 2>&1; then + alias ll='lsd -lav' + alias l='lsd -lv' + alias ls='lsd' +elif command -v eza >/dev/null 2>&1; then + alias ll='eza -lag' + alias l='eza -lg' + alias ls='eza' +else + alias ll='ls -lav --color=auto' + alias l='ls -lv --color=auto' + alias ls='ls --color=auto' +fi + +command -v bat >/dev/null 2>&1 && alias cat='bat' powerline-daemon -q . /usr/share/powerline/bindings/zsh/powerline.zsh +# input method +if command -v fcitx5 >/dev/null 2>&1; then + export GTK_IM_MODULE=fcitx + export QT_IM_MODULE=fcitx + export XMODIFIERS=@im=fcitx + export SDL_IM_MODULE=fcitx + export GLFW_IM_MODULE=ibus +fi + # The following lines were added by compinstall zstyle ':completion:*' completer _complete _ignored