0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Macで入れたもの

Last updated at Posted at 2024-07-14

忘れる前にメモ
設定ファイルもさらしておく

ターミナルエミュレーター

  • Alacritty
  • Nerd Font
brew install font-meslo-lg-nerd-font
  • テーマ Tokyo Night
git clone https://github.com/alacritty/alacritty-theme ~/.config/alacritty/alacritty-theme

シェル

zsh
brewのインストール https://brew.sh/ja/

brewでインストールするもの

プロンプト系

  • starship
  • zsh-completions
  • zsh-autosuggestions
  • zsh-syntax-highlighting
brew install starship zsh-completions zsh-autosuggestions zsh-syntax-highlighting

初回起動で
zsh compinit: insecure directories, run compaudit for list.
となったらcompauditで表示されるディレクトリに対して

chmod 755 /opt/homebrew/share

で直る
参考記事

ターミナル分割

  • zellij

便利なコマンド

  • eza
  • trash
  • tree

Vim

  • AstroNvim
  • ripgrep
  • jesseduffield/lazygit/lazygit

その他

  • fastfetch
  • sl
  • git
  • wget
  • nvm(nodeのバージョン管理)
nvm install node

設定ファイル

~/.zshrc
alias ls="eza --icons=always"
alias l='ls -l'
alias la='ls -la'
alias rm='trash -F'
alias tree='tree -C'
alias vim='nvim'
alias vi='nvim'
alias n='nvim'
alias z='zellij attach --index 0 --create'
eval "$(starship init zsh)"
source /opt/homebrew/share/zsh-autosuggestions/zsh-autosuggestions.zsh
source /opt/homebrew/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
FPATH=/opt/homebrew/share/zsh-completions:$FPATH
FPATH=/opt/homebrew/share/zsh/site-functions:$FPATH
HISTSIZE=100000
SAVEHIST=100000
HISTORY_IGNORE="(pwd|l|l[sal])"
setopt hist_ignore_dups
setopt hist_ignore_space
setopt hist_reduce_blanks
setopt hist_expire_dups_first
DIRSTACKSIZE=100
setopt auto_pushd
setopt pushd_ignore_dups

autoload -Uz compinit
compinit
zstyle ':completion:*' completer _complete _approximate _prefix
zstyle ':completion:*' menu select
zstyle ':completion:*:cd:*' ignore-parents parent pwd
zstyle ':completion:*:descriptions' format '%BCompleting%b %U%d%u'

# nvm
export NVM_DIR="$HOME/.nvm"
[ -s "/opt/homebrew/opt/nvm/nvm.sh" ] && \. "/opt/homebrew/opt/nvm/nvm.sh"  # This loads nvm
[ -s "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" ] && \. "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm"  # This loads nvm bash_completion
# end nvm
~/.config/alacritty.toml
import  = ["~/.config/alacritty/themes/themes/tokyo-night.toml"]

[window]
option_as_alt = "Both"
startup_mode = "Fullscreen"

[scrolling]
history=10000

[font]
normal  = { family = "MesloLGM Nerd Font", style = "Regular" }
size=12

[keyboard]
bindings = [
  {key = '¥', chars = '\'},
]
~/.config/starship.toml
format='''
$cmd_duration
$all
'''

[directory]
truncation_length = 0
truncate_to_repo = false

OS設定

Finder

⌘,から

  • 拡張子の表示
  • サイドバーの表示項目

⌘Jから

  • デフォルトの表示設定
    表示順序、グリッド間隔、項目の情報表示

ターミナルから

  • 隠しファイルの表示
defaults write com.apple.finder AppleShowAllFiles TRUE
  • OpenInTerminal
    Alacritty, VSCode, TextEdit, Copy Pathを設定

  • Syntax Highlight
    プレビューにシンタックスハイライト

ステージマネージャー

表示数を増やす

defaults write com.apple.WindowManager MaximumItemHeight -float 100.0
defaults write com.apple.WindowManager LeftStripPileVerticalSpacing -int 10
defaults write com.apple.WindowManager LeftStripMaximumRowCount -int 10
defaults write com.apple.WindowManager AppIconSize -int 30
defaults write com.apple.WindowManager StripHoverScaleDistance -int 30

参考記事

デスクトップとDock

Mission Controlの自動並べ替えをしない
参考記事

アプリ

ブラウザ

  • Arc

ターミナル

  • Alacritty

IME

  • ATOK

開発用

  • VSCode
  • Proxyman
  • Wireshark
  • CotEditor

ユーティリティ

  • RunCat
  • DevToys
  • OpenInTerminal
  • Battery
  • WattSec
  • Maccy
defaults read org.p0deje.Maccy
{
    "KeyboardShortcuts_delete" = "{\\"carbonKeyCode\\":51,\\"carbonModifiers\\":2048}";
    "KeyboardShortcuts_pin" = "{\\"carbonModifiers\\":2048,\\"carbonKeyCode\\":35}";
    "KeyboardShortcuts_popup" = "{\\"carbonKeyCode\\":9,\\"carbonModifiers\\":768}";
    "LaunchAtLogin__hasMigrated" = 1;
    "NSStatusItem Visible Item-1" = 0;
    "NSWindow Frame SUStatusFrame" = "535 609 400 134 0 0 1470 919 ";
    "NSWindow Frame SUUpdateAlert" = "425 411 620 398 0 0 1470 919 ";
    "NSWindow Frame com.sindresorhus.Preferences.FrameAutosaveName" = "442 241 442 508 0 0 1470 919 ";
    "NSWindow Frame com.sindresorhus.Settings.FrameAutosaveName" = "380 513 482 305 0 0 1470 919 ";
    SUAutomaticallyUpdate = 1;
    SUEnableAutomaticChecks = 1;
    SUHasLaunchedBefore = 1;
    SULastCheckTime = "2024-10-08 12:44:04 +0000";
    SUSendProfileInfo = 0;
    SUUpdateGroupIdentifier = 2063210710;
    WebKitDefaultFontSize = 13;
    WebKitJavaScriptEnabled = 0;
    WebKitPluginsEnabled = 0;
    WebKitStandardFont = "-apple-system-font";
    WebKitUserStyleSheetEnabledPreferenceKey = 1;
    WebKitUserStyleSheetLocationPreferenceKey = "/Applications/Maccy.app/Contents/Frameworks/Sparkle.framework/Resources/ReleaseNotesColorStyle.css";
    enabledPasteboardTypes =     (
        "public.tiff",
        "public.png"
    );
    historySize = 15;
    ignoredPasteboardTypes =     (
        "de.petermaurer.TransientPasteboardType",
        "net.antelle.keeweb",
        "Pasteboard generator type",
        "com.agilebits.onepassword",
        "com.typeit4me.clipping"
    );
    imageMaxHeight = 32;
    maxMenuItemLength = 80;
    maxMenuItems = 10;
    menuIcon = paperclip;
    migrations =     {
        "2020-04-25-allow-custom-ignored-types" = 1;
        "2020-06-19-use-keyboardshortcuts" = 1;
        "2020-09-01-ignore-keeweb" = 1;
        "2021-02-20-allow-to-customize-supported-types" = 1;
        "2021-06-28-add-title-to-history-item" = 1;
        "2021-10-16-remove-dynamic-pasteboard-types" = 1;
        "2022-08-01-rename-suppress-clear-alert" = 1;
        "2022-11-14-add-html-rtf-to-supported-types" = 1;
        "2024-07-01-version-2" = 1;
    };
    pasteByDefault = 1;
    popupPosition = cursor;
    previewDelay = 500;
    searchMode = fuzzy;
    searchVisibility = always;
    showFooter = 1;
    showRecentCopyInMenuBar = 0;
    showSearch = 1;
    showSpecialSymbols = 1;
    showTitle = 0;
    sortBy = firstCopiedAt;
    windowSize = "[450,800]";
}
  • LinearMouse
linearmouse.json
{
  "$schema" : "https:\/\/schema.linearmouse.app\/0.10.0",
  "schemes" : [
    {
      "pointer" : {
        "speed" : 0.0689655172413792768,
        "acceleration" : 0.6875,
        "disableAcceleration" : false
      },
      "scrolling" : {
        "distance" : {
          "vertical" : 3
        },
        "modifiers" : {
          "vertical" : {
            "command" : {
              "type" : "preventDefault"
            },
            "control" : {
              "type" : "pinchZoom"
            },
            "shift" : {
              "type" : "alterOrientation"
            }
          }
        },
        "acceleration" : {
          "vertical" : 1
        },
        "reverse" : {
          "vertical" : true
        },
        "speed" : {
          "vertical" : 0
        }
      },
      "if" : {
        "device" : {
          "productID" : "0x169",
          "category" : "mouse",
          "vendorID" : "0x56e",
          "productName" : "ELECOM BT Mouse"
        }
      },
      "buttons" : {
        "mappings" : [
          {
            "button" : 0,
            "shift" : false,
            "command" : false,
            "action" : "missionControl.spaceLeft",
            "option" : false,
            "control" : true
          },
          {
            "command" : false,
            "button" : 1,
            "shift" : false,
            "option" : false,
            "control" : true,
            "action" : "missionControl.spaceRight"
          },
          {
            "command" : false,
            "shift" : false,
            "control" : false,
            "button" : 2,
            "option" : false,
            "action" : "missionControl"
          },
          {
            "button" : 3,
            "command" : false,
            "shift" : true,
            "option" : false,
            "control" : false,
            "action" : "mouse.button.forward"
          }
        ]
      }
    },
    {
      "scrolling" : {
        "distance" : {
          "vertical" : 5
        },
        "acceleration" : {
          "vertical" : 1
        },
        "speed" : {
          "vertical" : 0
        }
      },
      "if" : {
        "device" : {
          "vendorID" : "0x56e",
          "productName" : "ELECOM BT Mouse",
          "productID" : "0x169",
          "category" : "mouse"
        },
        "app" : "com.apple.finder"
      }
    },
    {
      "scrolling" : {
        "distance" : {
          "vertical" : "128px"
        },
        "acceleration" : {
          "vertical" : 1
        },
        "speed" : {
          "vertical" : 0
        }
      },
      "if" : {
        "app" : "jp.naver.line.mac",
        "device" : {
          "productName" : "ELECOM BT Mouse",
          "category" : "mouse",
          "vendorID" : "0x56e",
          "productID" : "0x169"
        }
      }
    },
    {
      "buttons" : {
        "mappings" : [
          {
            "option" : false,
            "command" : false,
            "control" : false,
            "shift" : false,
            "button" : 2
          }
        ]
      },
      "if" : {
        "device" : {
          "productID" : "0x169",
          "category" : "mouse",
          "productName" : "ELECOM BT Mouse",
          "vendorID" : "0x56e"
        },
        "app" : "com.autodesk.fusion360"
      }
    }
  ]
}
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?