Port to python3
This commit is contained in:
parent
8b29a34b21
commit
15abdb3765
4 changed files with 5 additions and 8 deletions
|
@ -1,6 +1,3 @@
|
||||||
# status bar
|
|
||||||
set-option -g status-utf8 on
|
|
||||||
|
|
||||||
# https://github.com/seebi/tmux-colors-solarized/blob/master/tmuxcolors-256.conf
|
# https://github.com/seebi/tmux-colors-solarized/blob/master/tmuxcolors-256.conf
|
||||||
set-option -g status-bg colour235 #base02
|
set-option -g status-bg colour235 #base02
|
||||||
set-option -g status-fg colour136 #yellow
|
set-option -g status-fg colour136 #yellow
|
||||||
|
@ -67,8 +64,8 @@ set-window-option -g window-status-current-bg green
|
||||||
|
|
||||||
# Vi copypaste mode
|
# Vi copypaste mode
|
||||||
set-window-option -g mode-keys vi
|
set-window-option -g mode-keys vi
|
||||||
bind-key -t vi-copy 'v' begin-selection
|
bind-key -T copy-mode-vi 'v' send -X begin-selection
|
||||||
bind-key -t vi-copy 'y' copy-selection
|
bind-key -T copy-mode-vi 'y' send -X copy-selection
|
||||||
|
|
||||||
# hjkl pane traversal
|
# hjkl pane traversal
|
||||||
bind h select-pane -L
|
bind h select-pane -L
|
||||||
|
|
2
.vim
2
.vim
|
@ -1 +1 @@
|
||||||
Subproject commit ed4da1ed45fe33ccff122c835d5034ea0bcc142c
|
Subproject commit 9183de7bc55a4c81c2fbae4695437a9bc5568c50
|
|
@ -48,4 +48,4 @@ source ${HOME}/.zsh/config-git.zsh
|
||||||
[ -e ${HOME}/.zsh/local-config.zsh ] && source ${HOME}/.zsh/local-config.zsh
|
[ -e ${HOME}/.zsh/local-config.zsh ] && source ${HOME}/.zsh/local-config.zsh
|
||||||
|
|
||||||
## Clean PATH from duplicates
|
## Clean PATH from duplicates
|
||||||
PATH=$(python -c 'import os; out=[]; [out.append(i) for i in os.environ["PATH"].split(":") if not out.count(i)]; print ":".join(out)')
|
PATH=$(${HOME}/bin/path-dedup.py)
|
||||||
|
|
|
@ -15,7 +15,7 @@ if [ -z "${PWD}" ]; then
|
||||||
exit 2
|
exit 2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
HEXPWD=$(python -c "print '${PWD}'.encode('hex')")
|
HEXPWD=$(python3 -c "import binascii; print(binascii.hexlify(bytearray('${PWD}', 'utf-8')))")
|
||||||
|
|
||||||
# Get keygrip of secret key
|
# Get keygrip of secret key
|
||||||
for KEYGRIP in $(gpg2 --with-keygrip -k ${KEY} | grep Keygrip | cut -d '=' -f 2 | xargs); do
|
for KEYGRIP in $(gpg2 --with-keygrip -k ${KEY} | grep Keygrip | cut -d '=' -f 2 | xargs); do
|
||||||
|
|
Loading…
Reference in a new issue