Browse Source

small tweaks

Médéric Hurier 1 week ago
parent
commit
d515ff46b4
3 changed files with 10 additions and 18 deletions
  1. 9
    12
      roles/common/files/aliases
  2. 1
    0
      roles/vim/files/vimrc
  3. 0
    6
      site.yml

+ 9
- 12
roles/common/files/aliases View File

@@ -1,7 +1,6 @@
1 1
 # vim: foldmethod=marker
2 2
 # DEFAULT {{{
3 3
 alias srv='service'
4
-alias say='espeak-ng'
5 4
 alias sys='systemctl'
6 5
 alias log='journalctl'
7 6
 alias ls='ls --color=auto -CF'
@@ -65,11 +64,12 @@ alias kd="$EDITOR ~/.display && source ~/.display"
65 64
 alias ke="$EDITOR ~/.environ && source ~/.environ"
66 65
 alias kg="$EDITOR ~/.gitconfig"
67 66
 alias ki="$EDITOR ~/.input"
67
+alias kk="source"
68 68
 alias kn="$EDITOR ~/.config/nvim/init.vim"
69 69
 alias ko="$EDITOR ./.gitignore"
70 70
 alias kp="$EDITOR ~/.private && source ~/.private"
71 71
 alias kq="$EDITOR ~/.config/qutebrowser/config.py"
72
-alias kr="source"
72
+alias kr="$EDITOR ~/.racketrc"
73 73
 alias ks="$EDITOR ~/.ssh/config"
74 74
 alias kt="$EDITOR ~/.ctags"
75 75
 alias kv="$EDITOR ~/.vimrc"
@@ -91,7 +91,6 @@ alias mk='make'
91 91
 # }}}
92 92
 # Note {{{
93 93
 alias ne='note'
94
-
95 94
 function note {
96 95
     $EDITOR "$HOME/note/$1.md"
97 96
 }
@@ -108,7 +107,6 @@ alias pvq='deactivate'
108 107
 alias pvw='source venv/bin/activate'
109 108
 alias pvv='source .venv/bin/activate'
110 109
 alias pvc='python -m venv .venv --symlinks'
111
-
112 110
 function pve {
113 111
   echo 'source "$(dirname $0)/.venv/bin/activate"' > .env
114 112
 }
@@ -122,6 +120,11 @@ alias ppe='python -m pip install -e'
122 120
 alias ppp='python -m pip install --user'
123 121
 # }}}
124 122
 # }}}
123
+## Racket {{{
124
+alias rc='raco'
125
+alias ra='racket'
126
+alias re='racket -e'
127
+# }}}
125 128
 # Tmuxp {{{
126 129
 alias tt='tmuxp'
127 130
 alias tl='tmuxp load -y'
@@ -140,14 +143,8 @@ alias uc='sudo apt autoremove --purge'
140 143
 # }}}
141 144
 # Vim {{{
142 145
 alias vi='vim'
143
-alias vo='nvim'
144
-alias vp='NVIM_LISTEN_ADDRESS=.vim nvim'
145
-# }}}
146
-# Watch {{{
147
-alias wm='watchmedo'
148
-alias wl='watchmedo log'
149
-alias wr='watchmedo auto-restart'
150
-alias ws='watchmedo shell-command'
146
+alias vs='vim -S'
147
+alias vp='vim -S .vim'
151 148
 # }}}
152 149
 # XServer {{{
153 150
 alias xf='xdg-open'

+ 1
- 0
roles/vim/files/vimrc View File

@@ -207,6 +207,7 @@ nnoremap ,,/ :s/^\/\///<CR>:nohl<CR>
207 207
 let mapleader="\<space>"
208 208
 nnoremap <leader><CR> :make 
209 209
 nnoremap <leader><Space> :make<CR>
210
+nnoremap <leader>s :mksession .vim<CR>
210 211
 " }}}
211 212
 " localleaders {{{
212 213
 let maplocalleader="\<c-space>"

+ 0
- 6
site.yml View File

@@ -25,20 +25,14 @@
25 25
     - {role: curl, tags: ['curl', 'network']}
26 26
     - {role: fasd, tags: ['fasd', 'shell']}
27 27
     - {role: git, tags: ['git', 'project']}
28
-    - {role: glances, tags: ['glances', 'monitor']}
29 28
     - {role: htop, tags: ['htop', 'monitor']}
30
-    - {role: httpie, tags: ['httpie', 'network']}
31 29
     - {role: imagemagick, tags: ['imagemagick', 'data']}
32
-    - {role: ipcalc, tags: ['ipcalc', 'network']}
33 30
     - {role: jq, tags: ['jq', 'data']}
34 31
     - {role: make, tags: ['make', 'project']}
35
-    - {role: neovim, tags: ['neovim', 'editor']}
36 32
     - {role: ncdu, tags: ['ncdu', 'monitor']}
37
-    - {role: onset, tags: ['onset', 'pipe']}
38 33
     - {role: parallel, tags: ['parallel', 'pipe']}
39 34
     - {role: percol, tags: ['percol', 'pipe']}
40 35
     - {role: pv, tags: ['pv', 'pipe']}
41
-    - {role: pydf, tags: ['pydf', 'monitor']}
42 36
     - {role: ranger, tags: ['ranger', 'shell']}
43 37
     - {role: silversearcher, tags: ['silversearcher', 'pipe']}
44 38
     - {role: termtosvg, tags: ['termtosvg', 'shell']}