Skip to content

Uninstalling asksh

Follow these steps to remove asksh, its shell hooks, and its local data from your machine.

  1. Stop the background daemon if it is running:

    asksh daemon stop
    
  2. Remove the # asksh block (export PATH=... or fish_add_path ..., and the asksh init line) from your shell startup file:

    • zsh: ~/.zshrc (or $ZDOTDIR/.zshrc)
    • bash: ~/.bashrc or ~/.bash_profile
    • fish: ~/.config/fish/config.fish
  3. Delete the asksh binary. By default, the installer places it in ~/.local/bin:

    rm -f ~/.local/bin/asksh
    

    If you installed to a custom $ASKSH_INSTALL_DIR or built from source elsewhere, remove that binary instead.

  4. Delete the configuration and data directories:

    rm -rf ~/.config/asksh ~/.local/share/asksh
    

    If you set $ASKSH_CONFIG_DIR, $ASKSH_DATA_DIR, $XDG_CONFIG_HOME, or $XDG_DATA_HOME, delete those directories instead. If the daemon socket fell back to /tmp (when the data directory path exceeded 96 bytes), remove it as well:

    rm -f "/tmp/askshd-$(id -u).sock"
    
  5. Optionally remove any .asksh/ directories inside your repositories if you created project-local permissions.toml, memory.toml, runbooks/, or skills/ files.

Restart your shell after updating your startup file so the old keybindings and hooks are unloaded.