docs: qubes

This commit is contained in:
Michel 2024-05-21 17:16:54 +02:00
parent 4902e24069
commit b4e16e78b0

View File

@ -134,7 +134,8 @@ skelfiles checkout
### Useful Commands ### Useful Commands
- List all tracked files (from CWD): - List all tracked files (from CWD):
`dotfiles ls-tree --name-only -rz main | xargs -0 $(whence lsd) -lU` `dotfiles ls-tree --name-only -rz HEAD | xargs -0 $(whence lsd) -lU`
`--color always | fzf --multi --height=~100 --exact`
### Other Tools ### Other Tools
@ -252,7 +253,8 @@ fc-cache -fv /opt/fonts
```sh ```sh
sudo apt install kitty-terminfo sudo apt install kitty-terminfo
# OR: # OR:
wget 'https://salsa.debian.org/debian/kitty/-/raw/debian/sid/terminfo/x/xterm-kitty wget 'https://salsa.debian.org/debian/kitty/-/raw/debian/sid/terminfo/x/xterm-kitty'
sudo cp xterm-kitty /usr/share/terminfo/x
``` ```
### Install ### Install
@ -271,6 +273,7 @@ sudo apt install kitty
sh ~/.config/kitty/installer.sh sh ~/.config/kitty/installer.sh
# In /opt/kitty.app # In /opt/kitty.app
# Insert Proxy export at top of installer
sudo sh ~/.config/kitty/installer.sh launch=n dest=/opt sudo sh ~/.config/kitty/installer.sh launch=n dest=/opt
sudo update-alternatives \ sudo update-alternatives \
--install /usr/bin/x-terminal-emulator \ --install /usr/bin/x-terminal-emulator \
@ -309,9 +312,6 @@ go install
### Binary Releases ### Binary Releases
```sh ```sh
mkdir -p /opt/lazygit/bin
cd /opt/lazygit/bin
URI=https://api.github.com/repos/jesseduffield/lazygit URI=https://api.github.com/repos/jesseduffield/lazygit
LOCATION=$(curl -s $URI/releases/latest \ LOCATION=$(curl -s $URI/releases/latest \
| grep "browser_download_url.*Linux_x86_64" \ | grep "browser_download_url.*Linux_x86_64" \
@ -319,9 +319,11 @@ LOCATION=$(curl -s $URI/releases/latest \
| sed 's/,$//' \ | sed 's/,$//' \
| sed 's/"//g') | sed 's/"//g')
echo $LOCATION echo $LOCATION
wget $LOCATION wget $LOCATION
tar xf *.tar.gz(om[1])
sudo mkdir -p /opt/lazygit/bin
cd /opt/lazygit/bin
sudo tar xf ${OLDPWD}/*.tar.gz(om[1])
``` ```
### From Go Package ### From Go Package
@ -353,11 +355,11 @@ commit=, build date=, build source=unknown, version=unversioned, os=linux, arch=
mkdir -p $HOME/.local/bin mkdir -p $HOME/.local/bin
cd $HOME/.local/bin cd $HOME/.local/bin
# --- # ---
mkdir -p /opt/neovim/bin sudo mkdir -p /opt/neovim/bin
cd /opt/neovim/bin cd /opt/neovim/bin
curl -LO https://github.com/neovim/neovim/releases/download/nightly/nvim.appimage sudo =curl-proxy -LO https://github.com/neovim/neovim/releases/download/nightly/nvim.appimage
chmod u+x nvim.appimage chmod ugo+x nvim.appimage
ln -sf nvim.appimage nvim ln -sf nvim.appimage nvim
ln -sf nvim.appimage vi ln -sf nvim.appimage vi
@ -366,7 +368,7 @@ nvim --version
vi --version vi --version
``` ```
### flatpak ### flatpak (unverified)
```sh ```sh
flatpak install flathub io.neovim.nvim flatpak install flathub io.neovim.nvim
@ -396,27 +398,22 @@ flatpak install flathub io.neovim.nvim
### From source ### From source
```sh ```sh
# From release
URI=https://github.com/jarun/nnn
xdg-open $URI/releases/latest
ARCHIVE=$(echo $HOME/Downloads/*.gz(om[1])) && echo $ARCHIVE
tar xf $ARCHIVE
# From repository # From repository
mkdir -p ~/dev; cd ~/dev
git clone https://github.com/jarun/nnn.git git clone https://github.com/jarun/nnn.git
# Compile # Compile
cd nnn*(om[1]) cd nnn
make clean make clean
sudo make O_GITSTATUS=1 O_NAMEFIRST=1 O_NERD=1 install sudo make O_GITSTATUS=1 O_NAMEFIRST=1 O_NERD=1 install
sudo make PREFIX=/opt/nnn O_GITSTATUS=1 O_NAMEFIRST=1 O_NERD=1 install sudo make PREFIX=/opt/nnn O_GITSTATUS=1 O_NAMEFIRST=1 O_NERD=1 install
sudo cp -v misc/auto-completion/zsh/* /usr/local/share/zsh/site-functions sudo cp -v misc/auto-completion/zsh/* /usr/local/share/zsh/site-functions
sudo chmod a+r /usr/local/share/zsh/site-functions/* sudo chmod -v a+r /usr/local/share/zsh/site-functions/*
# Plugins # Plugins
mv -v ~/.config/nnn/plugins plugins_$(stat -c %Y ~/.config/nnn/plugins) mv -v ~/.config/nnn/plugins $HOME/nnn_plugins_$(stat -c %Y ~/.config/nnn/plugins)
mkdir -p ~/.config/nnn mkdir -p ~/.config/nnn
cp -av plugins ~/.config/nnn cp -av plugins ~/.config/nnn
``` ```