All Projects → desyncr → auto-ls

desyncr / auto-ls

Licence: GPL-3.0 license
zsh plugin for auto-ls

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to auto-ls

Pure
Pretty, minimal and fast ZSH prompt
Stars: ✭ 10,891 (+14044.16%)
Mutual labels:  zsh, prompt
Shelby
Shelby is a fast ⚡️ , lightweight ☁️ , minimal✨, shell prompt written in Go.
Stars: ✭ 148 (+92.21%)
Mutual labels:  zsh, prompt
Polyglot
Color, ASCII-only Git prompt for zsh, bash, ksh93, mksh, pdksh, dash, and busybox ash
Stars: ✭ 118 (+53.25%)
Mutual labels:  zsh, prompt
Pretty Git Prompt
`git status` inside your shell prompt
Stars: ✭ 43 (-44.16%)
Mutual labels:  zsh, prompt
Agkozak Zsh Prompt
A fast, asynchronous ZSH prompt with color ASCII indicators of Git, exit, SSH, virtual environment, and vi mode status. Framework-agnostic and customizable.
Stars: ✭ 182 (+136.36%)
Mutual labels:  zsh, prompt
Angel Ps1
Your fancy shell prompt fed by your guardian angel
Stars: ✭ 60 (-22.08%)
Mutual labels:  zsh, prompt
Nicy
❄️ a nice and icy zsh and bash prompt in Nim
Stars: ✭ 148 (+92.21%)
Mutual labels:  zsh, prompt
Typewritten
A minimal, lightweight, informative zsh prompt theme
Stars: ✭ 442 (+474.03%)
Mutual labels:  zsh, prompt
Powerline
Powerline is a statusline plugin for vim, and provides statuslines and prompts for several other applications, including zsh, bash, tmux, IPython, Awesome and Qtile.
Stars: ✭ 12,989 (+16768.83%)
Mutual labels:  zsh, prompt
Promptless
🚀 A super fast and extremely minimal shell prompt.
Stars: ✭ 155 (+101.3%)
Mutual labels:  zsh, prompt
Oh My Posh
A prompt theme engine for any shell.
Stars: ✭ 841 (+992.21%)
Mutual labels:  zsh, prompt
Spaceship Prompt
🚀⭐ A Zsh prompt for Astronauts
Stars: ✭ 15,748 (+20351.95%)
Mutual labels:  zsh, prompt
Geometry
geometry is a minimal, fully customizable and composable zsh prompt theme
Stars: ✭ 770 (+900%)
Mutual labels:  zsh, prompt
Mimir
Fast and minimal shell prompt
Stars: ✭ 90 (+16.88%)
Mutual labels:  zsh, prompt
Gbt
Highly configurable prompt builder for Bash, ZSH and PowerShell written in Go.
Stars: ✭ 457 (+493.51%)
Mutual labels:  zsh, prompt
Lean
Pretty, minimal, one-line, fast ZSH prompt
Stars: ✭ 136 (+76.62%)
Mutual labels:  zsh, prompt
Zsh Kubectl Prompt
Display information about the kubectl current context and namespace in zsh prompt.
Stars: ✭ 342 (+344.16%)
Mutual labels:  zsh, prompt
Liquidprompt
A full-featured & carefully designed adaptive prompt for Bash & Zsh
Stars: ✭ 4,134 (+5268.83%)
Mutual labels:  zsh, prompt
Zsh Prompt Garrett
A prompt with the information you need the moment you need it.
Stars: ✭ 150 (+94.81%)
Mutual labels:  zsh, prompt
Common
A simple, clean and minimal prompt.
Stars: ✭ 213 (+176.62%)
Mutual labels:  zsh, prompt

Auto-ls

There are many auto-lss out there but this one is mine.

Features

  • Custom command on cwd/enter-key
  • Auto ls on cwd
  • Auto ls on enter-key (with empty buffer)
  • Git status on a git work tree

Install

  • Manual

    curl -L https://git.io/auto-ls > /path/to/auto-ls.zsh
    source /path/to/auto-ls.zsh
    
  • Antigen

    antigen bundle desyncr/auto-ls
    
  • zplugin

    zplugin ice wait'0' lucid
    zplugin load desyncr/auto-ls
    

Configuration

  • AUTO_LS_COMMANDS: Use this configuration option to define the functions to run on cwd/enter-key.

Example: AUTO_LS_COMMANDS=(ls git-status)

  • AUTO_LS_NEWLINE: Configure ls to put a newline (Default: true).

Example: AUTO_LS_NEWLINE=false

  • AUTO_LS_PATH: Detect command full path to execute (Default: true).

Example: AUTO_LS_PATH=false

  • AUTO_LS_CHPWD: Enable/disable auto-ls on directory change (Default: true)

Example: AUTO_LS_CHPWD=false

Customization

You can configure commands in order to execute on cwd/ls, example:


AUTO_LS_COMMANDS=(ls git-status '/usr/bin/git log')
# Or...
AUTO_LS_COMMANDS=(ls git-status '[[ -d $PWD/.git ]] && /usr/bin/git log|head')

You may redefine default functions or define custom functions to be run on cwd/enter-key:

  • Before loading auto-ls define a function to be executed:

    auto-ls-custom_function () {
      echo "Current directory list:"
      ls -ltra
    }
    
    • Be sure to call it auto-ls-<name of your function>.
  • Configure auto-ls to load your function. Put the following line before sourcing auto-ls:

    AUTO_LS_COMMANDS=(custom_function)
    
    • Only use <name of your function> rather than auto-ls-<name of your function>.

You may as well load the default functions, ls and git-status:

 AUTO_LS_COMMANDS=(ls git-status custom_function)

Future

  • zstyle options to customize ls options
  • zstyle options to customize git status
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].