5 Commits

3 changed files with 18 additions and 12 deletions

View File

@@ -44,7 +44,7 @@ prompt_fresh_setup() {
fi fi
local userhost=$USER local userhost=$USER
if [ "$SSH_CONNECTION" != "" ]; then if [ "$SSH_CONNECTION" != "" ] || [ "$DISTROBOX_ENTER_PATH" != "" ]; then
local user="$user@%{%F{244}%}%M%{%f%}" local user="$user@%{%F{244}%}%M%{%f%}"
local userhost="$userhost@`hostname`" local userhost="$userhost@`hostname`"
fi fi

View File

@@ -1,19 +1,19 @@
--- ---
- name: zsh install packages - name: zsh install packages
become: '{{package_become}}'
package: package:
name: zsh name: zsh
state: present state: present
- name: zsh install Debian packages - name: zsh install Debian packages
when: ansible_os_family == "Debian" when: ansible_os_family == "Debian"
apt:
name: '{{item}}'
state: present
become: true become: true
with_items: apt:
name:
- zsh-doc - zsh-doc
- pinentry-curses - pinentry-curses
- unzip - unzip
state: present
- name: zsh clone plugin repos - name: zsh clone plugin repos
git: git:
@@ -80,7 +80,7 @@
dest: ~/.local/bin/$ dest: ~/.local/bin/$
- name: zsh get absolute path - name: zsh get absolute path
shell: which zsh shell: command -v zsh
register: zsh register: zsh
changed_when: false changed_when: false

View File

@@ -16,7 +16,10 @@ fi
# Abstract different ways to paste from the clipboard. # Abstract different ways to paste from the clipboard.
# TODO: Use OSC-52 to get the clipboard, not widely supported though # TODO: Use OSC-52 to get the clipboard, not widely supported though
if [ "`uname`" = "Darwin" ]; then if [ -n "$SSH_CONNECTION" ]; then
# Use OSC-52 to get the clipboard
alias paste='printf "\033]52;c;?\a"'
elif [ "`uname`" = "Darwin" ]; then
# Use pbpaste to get the clipboard # Use pbpaste to get the clipboard
alias paste='pbpaste' alias paste='pbpaste'
elif which xclip &> /dev/null; then elif which xclip &> /dev/null; then
@@ -66,8 +69,11 @@ if which bat &> /dev/null; then
# Both --theme and --color can be specified multiple times and will override # Both --theme and --color can be specified multiple times and will override
# these defaults. # these defaults.
bat() { bat() {
command bat --theme='TwoDark' --color always \ command bat --theme='TwoDark' --color always --paging auto "$@"
--paging always --pager 'less -R' "$@" }
elif which batcat &> /dev/null; then
bat() {
command batcat --theme='TwoDark' --color always --paging auto "$@"
} }
fi fi