File tree 3 files changed +18
-3
lines changed
3 files changed +18
-3
lines changed Original file line number Diff line number Diff line change 11
11
12
12
git clone $1 $out
13
13
14
+ cd $out
Original file line number Diff line number Diff line change @@ -28,6 +28,8 @@ alias ggl='fzf_log'
28
28
29
29
alias cg=' cd $(git rev-parse --show-toplevel)'
30
30
31
+ alias egd=' vim $(git diff --name-only)'
32
+
31
33
# Annoying mac uses different ls
32
34
if [[ $( uname -s) == Linux ]]
33
35
then
@@ -283,17 +285,26 @@ extract () {
283
285
fi
284
286
}
285
287
288
+ use_python_env ()
289
+ {
290
+ # Better test what kind of env this is
291
+ test -f ./env/bin/activate && source ./env/bin/activate || cona
292
+ }
293
+
286
294
work ()
287
295
{
288
296
# Activate node and activate python env
289
297
nvm use node
290
- test -d ./env && cona
298
+ test -d ./env && use_python_env ./env
291
299
test -f .venv/bin/activate && source .venv/bin/activate
300
+ test -f venv/bin/activate && source venv/bin/activate
292
301
}
293
302
294
- dework (){
303
+ dework ()
304
+ {
295
305
nvm deactivate
296
306
conda deactivate
307
+ deactivate
297
308
}
298
309
299
310
# Get code snippets
Original file line number Diff line number Diff line change @@ -126,6 +126,9 @@ bind d detach
126
126
# bind-key -n C-Tab next-window
127
127
# bind-key -n C-S-Tab previous-window
128
128
129
+ # Copy vbuf to terminal clipboard
130
+ # bind x command-prompt "cat ~/.vbuf | yank"
131
+
129
132
# write in all panes at once
130
133
bind x set-window-option synchronize-panes
131
134
@@ -333,7 +336,7 @@ set -g @plugin 'tmux-plugins/tmux-copycat'
333
336
# y - copy selection to system clipboard
334
337
# Y (shift-y) - "put" selection - equivalent to copying a selection, and pasting it to the command line
335
338
# Alt-y - performs both of the above: copy to system clipboard and put to command line (deprecated, not useful)
336
- set -g @plugin ' tmux-plugins/tmux-yank'
339
+ # set -g @plugin 'tmux-plugins/tmux-yank'
337
340
338
341
# https://sunaku.github.io/tmux-yank-osc52.html
339
342
# transfer copied text to attached terminal with yank
You can’t perform that action at this time.
0 commit comments