Skip to content

Instantly share code, notes, and snippets.

View LittleKey's full-sized avatar
💫
Lk@✨

LittleKey LittleKey

💫
Lk@✨
View GitHub Profile
@LittleKey
LittleKey / Replace macOS Terminal Emulator with GPU accelerated Alacritty.md [Replace macOS Terminal Emulator with GPU accelerated Alacritty] #macOS #terminal #shell #alacritty

https://arslan.io/2018/02/05/gpu-accelerated-terminal-alacritty/

  • Install rust: curl https://sh.rustup.rs -sSf | sh
  • Make rust available: echo 'source "$HOME/.cargo/env"' >> ~/.bashrc
  • Set rust compiler: rustup override set stable
  • Update rust: rustup update stable
  • Get Alacritty: git clone https://github.com/jwilm/alacritty.git
  • Build Alacritty: cd alacritty && make app
  • Add Alacritty to your Applications directory: cp -r target/release/osx/Alacritty.app /Applications/
  • Create Alacritty config: mkdir -p ~/.config/alacritty && cp alacritty_macos.yml ~/.config/alacritty/alacritty.yml
/*
* Copyright (C) 2014 skyfish.jy@gmail.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
import os
import ycm_core
from clang_helpers import PrepareClangFlags
# Set this to the absolute path to the folder (NOT the file!) containing the
# compile_commands.json file to use that instead of 'flags'. See here for
# more details: http://clang.llvm.org/docs/JSONCompilationDatabase.html
# Most projects will NOT need to set this to anything; you can just change the
# 'flags' list of compilation flags. Notice that YCM itself uses that approach.
compilation_database_folder = ''