generalize zsh role to support darwin
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
# {{ ansible_managed }}
|
||||
alias ls="eza --icons --group-directories-first"
|
||||
alias ll="eza --icons --group-directories-first -l"
|
||||
alias la="eza --icons --group-directories-first -la"
|
||||
{% if not (zsh_os_darwin | bool) %}
|
||||
alias p="podman"
|
||||
alias pp="podman play"
|
||||
alias pl="podman logs -f"
|
||||
@@ -10,4 +12,5 @@ alias jd="journalctl -xe"
|
||||
alias docker="echo 'use podman instead'"
|
||||
alias docker-compose="echo 'use podman-compose instead'"
|
||||
alias dc="echo 'use podman-compose instead'"
|
||||
{% endif %}
|
||||
alias w='cd $HOME/workspace'
|
||||
@@ -61,8 +61,8 @@ source $ZSH_PLUGINS/zsh-history-substring-search/zsh-history-substring-search.zs
|
||||
source $ZSH_PLUGINS/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
||||
|
||||
# Enable fzf integration (Ctrl+R, Ctrl+T, Alt+C)
|
||||
source /usr/share/fzf/key-bindings.zsh
|
||||
source /usr/share/fzf/completion.zsh
|
||||
source {{ zsh_fzf_shell_path }}/key-bindings.zsh
|
||||
source {{ zsh_fzf_shell_path }}/completion.zsh
|
||||
|
||||
# Enable fzf-tab for completions (after compinit)
|
||||
source $ZSH_PLUGINS/fzf-tab/fzf-tab.zsh
|
||||
|
||||
Reference in New Issue
Block a user