Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
takyshu98 committed Apr 28, 2024
1 parent a9d3e40 commit 13a5e15
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 12 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
.DS_Store
Brewfile.lock.json
Brewfile.lock.json

/home/.conifg/karabiner/automatic_backups/
3 changes: 3 additions & 0 deletions home/.config/git/ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# @file ~/.config/git/ignore

.DS_Store
7 changes: 5 additions & 2 deletions home/.config/tmux/tmux.conf
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,17 @@ bind-key C-z send-prefix
unbind-key C-b

# reload config file
bind-key r source-file ~/.config/tmux/tmux.conf\; display-message "[tmux] ~/.tmux.conf reloaded!"
bind-key C-r source-file ~/.config/tmux/tmux.conf\; display-message "[tmux] ~/.tmux.conf reloaded!"
bind-key r source-file ~/.config/tmux/tmux.conf\; display-message "[tmux] ~/.config/tmux/tmux.conf reloaded!"
bind-key C-r source-file ~/.config/tmux/tmux.conf\; display-message "[tmux] ~/.config/tmux/tmux.conf reloaded!"

# enable mouse operation
# notice when use iterm2
# Preference... > General > Selection
# check Applications in terminal may access clipboard to copy
set-option -g mouse on
unbind -T copy-mode MouseDragEnd1Pane
bind-key -T copy-mode Enter send-keys -X copy-pipe "tmux copy-buffer"
bind-key -T copy-mode MouseDown1Pane send-keys -X clear-selection

# start pane index 1 origin
set-window-option -g pane-base-index 1
Expand Down
4 changes: 3 additions & 1 deletion home/.mackup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,6 @@ directory = home

[applications_to_sync]
# iTerm2
karabiner-elements
karabiner-elements
# raycast
# vscode
8 changes: 4 additions & 4 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,16 @@ else
echo
fi

# Restore macOS settings
"${DOTPATH}/scripts/defaults.sh"
# Install command line tools and applications
brew bundle --file "${DOTPATH}/Brewfile"
echo

# Make symbolic links and directories
"${DOTPATH}/scripts/symlink.sh"
echo

# Install command line tools and applications
brew bundle --file "${DOTPATH}/Brewfile"
# Restore macOS settings
"${DOTPATH}/scripts/defaults.sh"
echo

# Restore application settings
Expand Down
9 changes: 7 additions & 2 deletions scripts/defaults.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/bash

set -e
set -eu

readonly SCREENSHOT_SAVE_PATH="${HOME}/var/screenshot"

echo "==> Configuring Trackpad options..."

Expand Down Expand Up @@ -34,4 +36,7 @@ echo "==> Configuring Other options..."
defaults write NSGlobalDomain NSAutomaticCapitalizationEnabled -bool "false"

# Deactivate auto spell correction
defaults write NSGlobalDomain NSAutomaticSpellingCorrectionEnabled -bool "false"
defaults write NSGlobalDomain NSAutomaticSpellingCorrectionEnabled -bool "false"

# Change screenshot save directory
defaults write com.apple.screencapture location "${SCREENSHOT_SAVE_PATH}"
5 changes: 3 additions & 2 deletions scripts/symlink.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@ mkdir -pv "${XDG_STATE_HOME}"
find "${DOTHOME}/.config" -maxdepth 1 ! -name '.config' ! -name '.DS_Store' -exec ln -fvns {} "${XDG_CONFIG_HOME}" \;

# Make directories with reference to Filesystem Hierarchy Standard
mkdir -pv "${HOME}/bin" # for original commands
mkdir -pv "${HOME}/bin" # for self manage commands
mkdir -pv "${HOME}/src" # for code repositories
mkdir -pv "${HOME}/tmp" # for temporary workspace
mkdir -pv "${HOME}/var/"{archive,recent,tmp,screenshot} # for temporary workspace


# find "${DOTHOME}/bin/" -type f ! -name '.DS_Store' -perm 0755 -exec ln -fvns {} "${HOME}/bin/" \;

Expand Down

0 comments on commit 13a5e15

Please sign in to comment.