Open1

Linux再インストール備忘録

oberkoberk

数ヶ月に一回ノートPCに再インストールするので忘れそうなものリスト
または記憶喪失になった時

cargo系

apt系ジョークコマンド

curl wget

vim

  • vim-toml
    主に Cargo.toml をいじる時用

Gnome

gsettings set org.gnome.shell.extensions.dash-to-dock extend-height false
#vim /etc/bluetooth/main.conf
ControllerMode = dual

Mozc設定

すばらしい引用元

sudo apt update
sudo apt upgrade -y
sudo apt install build-essential devscripts -y
sudo apt build-dep ibus-mozc -y
apt source ibus-mozc
--------------------------------------------------------------------------------
emacs -nw $(find . -name property_handler.cc)           ------------------------

// Some users expect that Mozc is turned off by default on IBus 1.5.0 and later.
// https://code.google.com/p/mozc/issues/detail?id=201
// On IBus 1.4.x, IBus expects that an IME should always be turned on and
// IME on/off keys are handled by IBus itself rather than each IME.
#if IBUS_CHECK_VERSION(1, 5, 0)
const bool kActivatedOnLaunch = true; //false;
#else
const bool kActivatedOnLaunch = true;
#endif  // IBus>=1.5.0
-------------------------------------------------------------------------------

cd mozc*
dpkg-buildpackage -us -uc -b
sudo dpkg -i ../moac*.deb ../ibus-mozc*.deb

shell

# .bashrc
alias xcopy='xsel --clipboard --input'
alias xpaste='xsel --clipboard --output'
# config.fish
function ls
	command exa $argv
end

function fd
	command fdfind $argv
end

function xcopy
    xsel --clipboard --input
end

function xpaste
    xsel --clipboard --output
end


set -xU LESS_TERMCAP_md (printf "\e[01;31m")
set -xU LESS_TERMCAP_me (printf "\e[0m")
set -xU LESS_TERMCAP_se (printf "\e[0m")
set -xU LESS_TERMCAP_so (printf "\e[01;44;33m")
set -xU LESS_TERMCAP_ue (printf "\e[0m")
set -xU LESS_TERMCAP_us (printf "\e[01;32m")

tabs -4
starship init fish | source 

## もはや当然

# starship.toml
add_newline = true
[character]
error_symbol = "[➜](bold red)"
success_symbol = "[➜](bold green)"

# success_symbol = "[>>](bold green)"
# error_symbol = "[>>](bold red)"
# success_symbol = "[[~](bold green)>](bold white)"


[battery]
full_symbol = "🔋"
charging_symbol = "⚡️"
discharging_symbol = "💀"

[cmd_duration]
disabled = true
  • vscode
  • g++
  • curl
  • rustup
  • discord
  • Thunderbird
  • VLC