Skip to content

Instantly share code, notes, and snippets.

@alper
Last active October 14, 2020 13:20
Show Gist options
  • Save alper/e6f13a3a25f67295f753a94e8f0abcaa to your computer and use it in GitHub Desktop.
Save alper/e6f13a3a25f67295f753a94e8f0abcaa to your computer and use it in GitHub Desktop.

Revisions

  1. alper revised this gist Oct 14, 2020. 1 changed file with 2 additions and 17 deletions.
    19 changes: 2 additions & 17 deletions config.fish
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,7 @@
    set -x LC_ALL en_US.UTF-8
    set -x LANG en_US.UTF-8


    # https://github.com/oh-my-fish/theme-bobthefish
    set -g theme_date_format "+%d %H:%M"
    set -g theme_date_timezone Europe/Berlin
    @@ -13,20 +14,4 @@ set -g theme_date_timezone Europe/Berlin
    # fzf provided by: https://github.com/jethrokuan/fzf
    set -U FZF_DEFAULT_OPTS "--bind 'ctrl-l:execute-silent(qlmanage -p {}),ctrl-r:execute-silent(open -R {}),ctrl-o:execute-silent(open {})+abort,ctrl-y:execute-silent(echo {} | pbcopy)+abort'"


    # Exa aliases
    function l -d 'list files with exa' -w exa
    command exa -l --group-directories-first --git $argv
    end

    function la -d 'list files (with hidden) using exa' -w exa
    command exa -l --group-directories-first --git -a $argv
    end

    function ll -d 'long list files in directory recursively as tree with exa' -w exa
    command exa -lT --group-directories-first --git --level 4 --color always $argv | bat -p
    end

    function lr -d 'list files (most recent in bottom) with exa' -w exa
    command exa -l --group-directories-first --git --sort newest $argv
    end
    # Exa provided by: https://github.com/wawa19933/fish-exa
  2. alper revised this gist Oct 14, 2020. 1 changed file with 4 additions and 2 deletions.
    6 changes: 4 additions & 2 deletions config.fish
    Original file line number Diff line number Diff line change
    @@ -5,12 +5,14 @@ set -x LANG en_US.UTF-8
    set -g theme_date_format "+%d %H:%M"
    set -g theme_date_timezone Europe/Berlin


    # Pyenv provided by: https://github.com/oh-my-fish/plugin-pyenv
    # status --is-interactive; and source (pyenv init -|psub)


    # FZF plugin
    # fzf provided by: https://github.com/jethrokuan/fzf
    set -U FZF_DEFAULT_OPTS "--bind 'ctrl-l:execute-silent(qlmanage -p {}),ctrl-r:execute-silent(open -R {}),ctrl-o:execute-silent(open {})+abort,ctrl-y:execute-silent(echo {} | pbcopy)+abort'"

    set -U FZF_DEFAULT_OPTS "--bind 'ctrl-p:execute-silent(open {}),ctrl-y:execute-silent(echo {} | pbcopy)+abort'"

    # Exa aliases
    function l -d 'list files with exa' -w exa
  3. alper created this gist Oct 13, 2020.
    30 changes: 30 additions & 0 deletions config.fish
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,30 @@
    set -x LC_ALL en_US.UTF-8
    set -x LANG en_US.UTF-8

    # https://github.com/oh-my-fish/theme-bobthefish
    set -g theme_date_format "+%d %H:%M"
    set -g theme_date_timezone Europe/Berlin

    # status --is-interactive; and source (pyenv init -|psub)


    # FZF plugin

    set -U FZF_DEFAULT_OPTS "--bind 'ctrl-p:execute-silent(open {}),ctrl-y:execute-silent(echo {} | pbcopy)+abort'"

    # Exa aliases
    function l -d 'list files with exa' -w exa
    command exa -l --group-directories-first --git $argv
    end

    function la -d 'list files (with hidden) using exa' -w exa
    command exa -l --group-directories-first --git -a $argv
    end

    function ll -d 'long list files in directory recursively as tree with exa' -w exa
    command exa -lT --group-directories-first --git --level 4 --color always $argv | bat -p
    end

    function lr -d 'list files (most recent in bottom) with exa' -w exa
    command exa -l --group-directories-first --git --sort newest $argv
    end