Compare commits

..

No commits in common. '862e9a02e6a388e3007ff7076a8795d60174cfd4' and '70e213cd1e9c49b9d45bffc6791b667ac2ba4b15' have entirely different histories.

  1. 1
      .vim/startup/vundle_vimrc
  2. 8
      .zprofile
  3. 1
      .zshrc
  4. 11
      Brewfile-essentials
  5. 5
      README.md
  6. 17
      config/bootstrap.conf.yml
  7. 12
      config/hammerspoon.conf.yml
  8. 36
      config/macos.conf.yml
  9. 4
      git/work.gitconfig
  10. 3
      karabiner/karabiner.edn
  11. 4
      kitty/kitty.conf
  12. 4
      tmux/.tmux.conf
  13. 4
      zsh/env.zsh
  14. 3
      zsh/github-copilot-cli.zsh
  15. 2
      zsh/osx.zsh

1
.vim/startup/vundle_vimrc

@ -75,7 +75,6 @@ Plug 'nathangrigg/vim-beancount'
Plug 'hashivim/vim-terraform'
Plug 'wakatime/vim-wakatime'
Plug 'editorconfig/editorconfig-vim'
Plug 'chrisbra/csv.vim'
" Git plugin not hosted on GitHub
Plug 'git://git.wincent.com/command-t.git'

8
.zprofile

@ -2,11 +2,3 @@ export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init --path)"
if [[ $(uname -m) == 'arm64' ]]; then
# Set PATH, MANPATH, etc., for Homebrew.
eval "$(/opt/homebrew/bin/brew shellenv)"
fi
# Added by OrbStack: command-line tools and integration
source ~/.orbstack/shell/init.zsh 2>/dev/null || :

1
.zshrc

@ -196,7 +196,6 @@ source $HOME/dotfiles/zsh/keybindings.zsh
source $HOME/dotfiles/zsh/alias.zsh
source $HOME/dotfiles/zsh/env.zsh
source $HOME/dotfiles/zsh/fzf.zsh
source $HOME/dotfiles/zsh/github-copilot-cli.zsh
case `uname` in
Darwin)

11
Brewfile-essentials

@ -35,18 +35,15 @@ brew "koekeishiya/formulae/skhd"
brew "koekeishiya/formulae/yabai"
brew "yqrashawn/goku/goku"
cask "syncthing"
cask "bitwarden"
cask "raycast"
cask "smartgit"
cask "wechat"
cask "obsidian"
cask "1password"
cask "alfred"
# cask "arq" # Wait for v5 compatability
cask "beardedspice"
cask "bitbar"
cask "dash"
cask "docker"
cask "dropbox"
cask "firefox"
cask "flux"
cask "font-firacode-nerd-font"
cask "font-fantasque-sans-mono-nerd-font"
@ -62,9 +59,11 @@ cask "omnifocus"
cask "postgres"
cask "postman"
cask "rescuetime"
cask "setapp"
cask "slack"
cask "spotify"
cask "startupizer"
cask "syncthing"
cask "telegram"
cask "the-unarchiver"
cask "visual-studio-code"

5
README.md

@ -1,4 +1,4 @@
This is my personal dotfiles which contain config for vim, zsh, tmux, git, fzf etc;
This is my personal dotfiles which contain config for vim, zsh, tmux, git, fzf, etc;
## macOS setup
Set up by using [dotbot](https://blog.einverne.info/post/2020/08/use-dotbot-dotfiles-management.html):
@ -12,9 +12,8 @@ Set up by using [dotbot](https://blog.einverne.info/post/2020/08/use-dotbot-dotf
make linux
# under macOS, install applications by brew
make mac
./install -c config/macos.conf.yaml
Log out and log in again, zinit will install all plugins automatically. If you use vi to edit file at first time, the vim-plug will install all vim plugins automatically.
Log out and log in again, zinit will install all plugins automatically. If you tried to edit file by vi, the vim-plug will install all plugins automatically.
## Termux setup
Install dependency first:

17
config/bootstrap.conf.yml

@ -1,9 +1,4 @@
# bootstrap linux, macos
- defaults:
link:
relink: true
force: true
# Setup zinit
- create:
- ~/.zinit
@ -26,6 +21,15 @@
then git pull;
else git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm; fi
- shell:
- description: Install pyenv
quiet: true
command: |
if ! command -v pyenv &> /dev/null
then
curl https://pyenv.run | bash
fi
# Change default shell to zsh
- shell:
- description: Change default shell to zsh
@ -45,9 +49,6 @@
update_shell
- create:
- ~/.config/
- link:
~/.config/espanso:
if: '[ `uname` = Linux ]'

12
config/hammerspoon.conf.yml

@ -1,12 +0,0 @@
- defaults:
link:
relink: true
force: true
- brew:
- hammerspoon
- link:
~/.hammerspoon:
if: '[ `uname` = Darwin ]'
path: hammerspoon

36
config/macos.conf.yml

@ -15,9 +15,6 @@
~/Library/Preferences/espanso:
if: '[ `uname` = Darwin ]'
path: espanso
~/.config/karabiner.edn:
if: '[ `uname` = Darwin ]'
path: karabiner/karabiner.edn
~/.hammerspoon:
if: '[ `uname` = Darwin ]'
path: hammerspoon
@ -44,42 +41,23 @@
path: yabai/yabai_focus_display
- brew:
- assh
- git
- fd
- fzf
- htop
- zsh
- tmux
- pyenv
- pyenv-virtualenv
- assh
- ripgrep
- ffmpeg
- zsh
- yqrashawn/goku/goku
- tap:
- homebrew/cask-fonts
- cask:
- appcleaner
- contexts
- bigwig-club/brew/upic
- font-fira-code
- hammerspoon
- iterm2
- jetbrains-toolbox
- karabiner-elements
- kitty
- keka
- mos
- maczip
- obsidian
- plexamp
- postman
- raycast
- iterm2
- warp
- syncthing
- tailscale
- telegram-desktop
- hammerspoon
- obsidian
- bigwig-club/brew/upic
- visual-studio-code
- warp
- zerotier-one

4
git/work.gitconfig

@ -1,3 +1,3 @@
[user]
name = Ein Verne
email = [email protected]
name = yourname
email = [email protected]

3
karabiner/karabiner.edn

@ -46,11 +46,11 @@
}
:applications {:chrome ["^com\\.google\\.Chrome$"]
:chrome-canary [ "^com\\.google\\.Chrome\\.canary$"]
:raycast ["^com\\.raycast\\.macos$"]
:chromes ["^com\\.google\\.Chrome$" "^com\\.google\\.Chrome\\.canary$"]
:ctrlnp ["^md\\.obsidian",
"^com\\.jetbrains\\.intellij",
"com\\.jetbrains\\.pycharm",
"^com\\.electron\\.lark",
"^com\\.tencent\\.xinWeChat",
"^com\\.google\\.Chrome"]
:finder ["^com\\.apple\\.finder$"]
@ -460,6 +460,7 @@
[:4 :!C4]
[:b [:open "/Applications/Obsidian.app"]]
[:c [:open "/Applications/Google Chrome.app"]]
[:e [:open "/Applications/Lark.app"]]
[:w [:open "/Applications/WeChat.app"]]
[:g [:open "/Applications/GoldenDict.app"]]
[:v [:open "/Applications/Visual Studio Code.app"]]

4
kitty/kitty.conf

@ -36,7 +36,7 @@ font_features FiraCode-Retina +ss02 +ss03 +ss04 +ss05 +ss07 +zero
# foreground #c0b18b
# The background color
background #262626
# background #262626
# The foreground for selections
# selection_foreground #2f2f2f
@ -771,7 +771,7 @@ inactive_tab_background #999
#: The foreground and background colors
background_opacity 0.9
# background_opacity 1.0
#: The opacity of the background. A number between 0 and 1, where 1 is
#: opaque and 0 is fully transparent. This will only work if

4
tmux/.tmux.conf

@ -203,8 +203,7 @@ set-option -g status-left "\
set-option -g status-right "\
#[fg=colour214, bg=colour237] \
#[fg=colour223, bg=colour237]#{prefix_highlight} \
#[fg=colour223, bg=colour237] #(~/dotfiles/tmux/scripts/uptime.sh) \
#[fg=colour223, bg=colour237] #(~/dotfiles/tmux/scripts/uptime.sh) \
#[fg=colour246, bg=colour237] %m/%d\
#[fg=colour109] %H:%M \
#[fg=colour248, bg=colour239]"
@ -245,7 +244,6 @@ set -g @plugin 'tmux-plugins/tmux-copycat'
set -g @plugin 'christoomey/vim-tmux-navigator'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @plugin 'tmux-plugins/tmux-prefix-highlight'
# Other examples:
# set -g @plugin 'github_username/plugin_name'

4
zsh/env.zsh

@ -179,10 +179,6 @@ if [[ -d $HOME/.asdf/installs/rust/1.51.0/bin ]]; then
export PATH="$PATH:$HOME/.asdf/installs/rust/1.51.0/bin"
fi
if [[ -d $HOME/Library/Application\ Support/JetBrains/Toolbox/scripts ]]; then
export PATH=$PATH:$HOME/Library/Application\ Support/JetBrains/Toolbox/scripts/
fi
export PATH="/usr/local/opt/gnu-sed/libexec/gnubin:$PATH"
if [[ -d $HOME/Sync/beancount ]]; then

3
zsh/github-copilot-cli.zsh

@ -1,3 +0,0 @@
if command -v 1github-copilot-cli > /dev/null 2>&1; then
eval "$(github-copilot-cli alias -- "$0")"
fi

2
zsh/osx.zsh

@ -7,5 +7,3 @@ fi
if [[ -d "/usr/local/opt/gnu-getopt/bin" ]]; then
PATH="/usr/local/opt/gnu-getopt/bin:$PATH"
fi
[[ -s `brew --prefix`/etc/autojump.sh ]] && . `brew --prefix`/etc/autojump.sh
Loading…
Cancel
Save