Clone repo to .dotfiles
git clone --recursive [email protected]:andb0t/dotfiles.git ~/.dotfiles
# git clone --recursive https://[email protected]/andb0t/dotfiles.git ~/.dotfiles # alternative via HTTPS
cd ~/.dotfiles
# install AND create symlinks
./install.sh [SETUP] # execute without to see options
# ONLY create symlinks
./link.sh [SETUP]
- customize ipython in ~/.ipython
- customize matplotlib in ~/.config/matplotlib
- install atom package package-sync and sync, execute to update
- port gpg keys to new PC
# on old PC gpg --list-keys # read ID of gpg key # export ID=THE_ID gpg --export $ID > public.key gpg --export-secret-key $ID > private.key # on new PC gpg --import public.key gpg --import private.key gpg --edit-key [KEYNUMBER] # trust # 5
- swap Esc and Caps Lock:
- SLC6: system preferences >> keyboard ...
- Ubuntu:
dconf write /org/gnome/desktop/input-sources/xkb-options "['caps:escape']"
(swapescape
to swap)
- WSL:
- install Xming and run it to emulate a dummy Xserver in WSL
- if necessary: swap menu key (right-click key) with right ctrl
- add $USER/powershell to path
- copy relevant scripts to $WIN_HOME:
$DOTFILES_DIR/bin/WSL_push_win_changes
- connect thunderbird with backupped profile
- Virtualbox:
- copy&paste:
- install linux-headers-[machine] from within VM
- mount guest editions CD in VM from Vbox menu, run it
- enable bidirectional copy & paste
- copy&paste:
- Windows:
- follow instructions in this README
- Android:
- install
termux-api
app from app store, in addition to the installation in termux
- install
Special file extensions:
.shell
: sourced for any shell.zsh
: sourced if shell == zshell.bash
: sourced if shell == bash
- \v[REGEX] # make regex matching very magic ((), {}, <>, ?, +)
- :tabe [FILE] # add tab
- :[tabn, tabp] # switch tab
- . # apply same action again
- u # undo
- CTRL-r # redo
- :sp [FILE] # split window
- CTRL-w + arrowkey # switch between split windows
- :qa close all tabs
- vim -o [FILES] # open files in split mode
- v + + y # mark text and copy
- d + $ # delete from cursor position until EOL
- CTRL + [d,u,e,y] # scroll down (up) half a screen (a line)
- CTRL + [o,i] # jump back (forward) to last cursor position
- :set [wrap, nowrap] # en/disable line wrap
- :set nonu # disable line numbers (
:set nu
to switch on) - g (G) # jump to beginning (end) of file
- Navigation
- dirs # list directory history
- cd [[+,-]Number] # change to directory
- ls 2/* # example for expansion of dir number
- Jobs
setopt NO_HUP
# run command ignoring hangup signals
- Bash
bash -c "COMMAND"
# execute commands with bash
- tmux ls # see all processes
- tmux a [-t [NUMBER]] # reattach process [with number NUMBER] Prefix Ctrl-q:
- PREF + z # make pane go full screen and back
- PREF + [np] # switch to previous (next) window
- PREF + d # detach process to run in bkg
- PREF + [ # enter vi mode to scroll, search etc (q to leave vi mode)
- PREF + x # kill current pane
- PREF + c # create new window
- PREF + space # cycle through aspect layout
- PREF + Ctrl-s # save current session
- PREF + Ctrl-r # reload saved session
-
pass # list saved items
-
duply [BACKUP_NAME] status # check backup status
-
duply [BACKUP_NAME] backup # create backup
-
gpg --list-keys
-
gpg --list-private-keys
-
gpg --decrypt [FILE.gpg]
-
gpg --encrypt [FILE]
-
unencrypted backup via rsync, e.g.
rsync -aPv --exclude-from=$DOTFILES_DIR/rsync/exclude_ExternalDrive_Lenovo.txt /media/MYUSER/ExternalDrive_Lenovo ~/Backups
- awk:
ls -l | awk '/em/{print $9 " was last modified at " $8}'
- grep (g/regular expression/p):
grep 'www\..*\.html' *
- sed (Stream EDitor)
env | sed -r 's/^([^=]*)=.*/\1/'
- find:
find . -name "*.zsh" -print | grep -v zsh/zsh-
- Regex101
- start Xlaunch, using settings in xming/config.xlaunch
- execute
xfce4-session
in shell