125 lines
4.2 KiB
Org Mode
125 lines
4.2 KiB
Org Mode
* How to set up this configuration
|
|
|
|
** Automated setup
|
|
|
|
#+begin_src sh
|
|
bash -c "$(curl -fsSL https://git.meinlschmidt.org/jetpac/dotfiles/raw/branch/main/bootstrap.sh)"
|
|
#+end_src
|
|
|
|
** manual setup
|
|
|
|
#+begin_src sh
|
|
# for linux; ignore on other systems
|
|
sudo yum update
|
|
sudo yum install zsh tmux git
|
|
|
|
source .proxies
|
|
|
|
# enter username/password
|
|
git clone --bare https://git.meinlschmidt.org/jetpac/dotfiles.git ~/.cfg
|
|
alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
|
|
config config --local status.showUntrackedFiles no
|
|
config checkout
|
|
|
|
source ~/.proxies
|
|
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh) --unattended --skip-chsh --keep-zshrc"
|
|
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
|
|
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
|
|
curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
|
|
|
|
vim +PlugInstall +qall
|
|
|
|
zsh
|
|
|
|
# run tmux, prefix + I installs all plugins (needs to have proxies set)
|
|
# run vim, :PlugInstall
|
|
|
|
# download and unpack dotfiles from my git
|
|
#+end_src
|
|
|
|
** iterm
|
|
*** defines dynamic profile for tmux keys usage
|
|
- profile sits in `Library/Application Support/iTerm2/DynamicProfiles/dynamic_profile.json`
|
|
- this profile inherits from Default profile
|
|
- automatically appears in profiles; set it as default and you should be going
|
|
- TODO - table of defined keys
|
|
|
|
** fonts
|
|
For iTerm on mac, the preferred fonts are installed automatically.
|
|
You can also download fonts like this:
|
|
#+begin_src bash
|
|
wget https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Regular.ttf
|
|
wget https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Bold.ttf
|
|
wget https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Italic.ttf
|
|
wget https://github.com/romkatv/powerlevel10k-media/raw/master/MesloLGS%20NF%20Bold%20Italic.ttf
|
|
#+end_src
|
|
|
|
** Emacs
|
|
#+begin_src bash
|
|
git clone https://github.com/syl20bnr/spacemacs ~/.emacs.d
|
|
#+end_src
|
|
Run Emacs and wait ~10 mins to download all packages
|
|
|
|
** tmux in User's home directory
|
|
If you want to build tmux independend of other parts of the system, cut&paste from the code snippet below should do the trick.
|
|
run export PATH=$HOME/usr/local:$PATH to pick up correct libraries and binaries
|
|
#+begin_src bash
|
|
#!/usr/bin/env bash
|
|
set -e
|
|
set -x
|
|
|
|
BUILD_DIR=$HOME/usr/local
|
|
mkdir -p $BUILD_DIR
|
|
cd $BUILD_DIR/src
|
|
curl https://ftp.acc.umu.se/mirror/gnu.org/gnu/m4/m4-1.4.19.tar.gz --output m4-1.4.19.tar.gz
|
|
tar xzvf m4-1.4.19.tar.gz; cd m4-1.4.19
|
|
./configure --prefix=$BUILD_DIR
|
|
make install
|
|
|
|
cd $BUILD_DIR
|
|
curl https://ftp.acc.umu.se/mirror/gnu.org/gnu/autoconf/autoconf-2.72.tar.gz --output autoconf-2.72.tar.gz
|
|
tar xvzf autoconf-2.72.tar.gz
|
|
cd $BUILD_DIR/src/autoconf-2.72
|
|
./configure --prefix=$BUILD_DIR
|
|
make install
|
|
|
|
curl https://ftp.acc.umu.se/mirror/gnu.org/gnu/automake/automake-1.16.5.tar.gz --output automake-1.16.5.tar.gz
|
|
tar xvzf automake-1.16.5.tar.gz
|
|
cd $BUILD_DIR/src/automake-1.16.5
|
|
./configure --prefix=$BUILD_DIR
|
|
make install
|
|
|
|
curl https://ftp.gnu.org/gnu/libtool/libtool-2.4.7.tar.gz -o libtool-2.4.7.tar.gz
|
|
tar xvzf libtool-2.4.7.tar.gz
|
|
cd $BUILD_DIR/src/libtool-2.4.7
|
|
./configure --prefix=$BUILD_DIR
|
|
make install
|
|
|
|
#pkg-config
|
|
curl https://pkgconfig.freedesktop.org/releases/pkg-config-0.29.2.tar.gz -o pkg-config-0.29.2.tar.gz
|
|
tar xvzf pkg-config-0.29.2.tar.gz
|
|
cd $BUILD_DIR/src/pkg-config-0.29.2
|
|
./configure --prefix=$BUILD_DIR --with-internal-glib
|
|
|
|
cd $BUILD_DIR/src
|
|
git clone https://github.com/libevent/libevent.git -b master
|
|
cd libevent
|
|
./autogen.sh
|
|
./configure --prefix=$BUILD_DIR
|
|
|
|
# utf8proc
|
|
cd $BUILD_DIR/src
|
|
git clone --depth 1 https://github.com/JuliaStrings/utf8proc.git -b v2.9.0
|
|
cd utf8proc
|
|
sed -i '' 's/^prefix=\/usr\/local/prefix=\$(HOME)\/usr\/local/' Makefile
|
|
make prefix=$BUILD_DIR
|
|
|
|
cd $BUILD_DIR/src
|
|
git clone --depth 1 --branch 3.3a https://github.com/tmux/tmux.git
|
|
cd $BUILD_DIR/src/tmux
|
|
./autogen.sh
|
|
./configure --prefix=$BUILD_DIR --enable-utf8proc
|
|
make -j7
|
|
make install
|
|
#+end_src
|