From d16876e70114a6f4eb69edf69fd65389516f1302 Mon Sep 17 00:00:00 2001 From: arnaucube Date: Sun, 9 Dec 2018 13:12:50 +0100 Subject: [PATCH] .Xmodmap and gitg alias --- .Xmodmap | 9 +++++++++ .bashrc | 4 ++++ README.md | 16 ++++++++++------ 3 files changed, 23 insertions(+), 6 deletions(-) create mode 100644 .Xmodmap diff --git a/.Xmodmap b/.Xmodmap new file mode 100644 index 0000000..febd4b7 --- /dev/null +++ b/.Xmodmap @@ -0,0 +1,9 @@ +! +! Swap Caps_Lock and Control_L +! +remove Lock = Caps_Lock +remove Control = Control_L +keysym Control_L = Caps_Lock +keysym Caps_Lock = Control_L +add Lock = Caps_Lock +add Control = Control_L diff --git a/.bashrc b/.bashrc index d64e69e..c543034 100644 --- a/.bashrc +++ b/.bashrc @@ -16,8 +16,12 @@ else fi unset color_prompt force_color_prompt +# gitg branch views, line from https://gitlab.com/dhole/dot_files/blob/master/.bash_aliases#L39 +alias gitg="git log --color --graph --abbrev-commit --pretty=format:'%Cred%h%Creset%C(yellow)%d%Creset %s %Cgreen(%ar)%C(cyan) %an<%ae>%Creset'" + # nvim alias alias n='nvim' +alias t='tmux' # go export PATH=$PATH:/usr/local/go/bin diff --git a/README.md b/README.md index 5f83322..8f2dc71 100644 --- a/README.md +++ b/README.md @@ -3,11 +3,15 @@ config files - NeoVim: `init.vim` - - in `.config/nvim/init.vim` - - install https://github.com/junegunn/vim-plug - - inside neovim, execute: `:PlugInstall` + - in `.config/nvim/init.vim` + - install https://github.com/junegunn/vim-plug + - inside neovim, execute: `:PlugInstall` - `.bashrc` - - in `~/home` directory - - execute `source .bashrc` + - in `~/home` directory + - execute `source .bashrc` - Tmux: `.tmux.conf` - - in `~/home` directory + - in `~/home` directory +- Keyboard remap `.Xmodmap` + - in `~/home` + - changes will be applied each session start + - to apply changes in the current session use `xmodmap ~/.Xmodmap`