Coder Social home page Coder Social logo

bash-config's People

Contributors

victorbrca avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

shizonic radon-86

bash-config's Issues

'key-bindings.bash' and 'completion.bash' are not found

$ cat /etc/os-release 
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
$ bash -l

bash: /usr/share/fzf/key-bindings.bash: No such file or directory
bash: /usr/share/fzf/completion.bash: No such file or directory
[bash-config] No themes are enabled

fzf plugin not checking for 'bat' and 'fd'

The 'fzf' plugin is not checking if 'bat' and 'fd' are installed.

# Settings for fzf
if command -v fzf > /dev/null ; then
  export FZF_COMPLETION_TRIGGER='**'
  # Cycle with tab
  export FZF_DEFAULT_OPTS='--bind tab:down --cycle'
  . /usr/share/fzf/key-bindings.bash
  . /usr/share/fzf/completion.bash
  # help:preview:Interactive preview for files in a folder
  preview () 
  {
    fd -d 1 -t f | fzf --preview 'bat --color "always" --wrap "auto" {}' \
    --bind 'alt-j:preview-down,alt-k:preview-up,ctrl-f:preview-page-down,ctrl-b:preview-page-up,ctrl-q:abort,ctrl-m:execute:(bat --paging=always \
    {} < /dev/tty)' --preview-window=right:70%
  }
else
  echo "[bash-config: fzf] fzf is not installed"
fi

Fix history issue

When searching for previous commands with the arrow keys bash is not refreshing properly. This is most likely due to the theme colors.

Enabled folders are not created

On a new install, the enabled folders (for both plugins and themes) is not created.

# bash-config enable -p apt,bash-aliases,bash-colors,bashrc,files,git,ls,networking,systemd,vim
ln: failed to create symbolic link '/root/.bash-config/plugins/enabled/apt.plugin.bash': No such file or directory
Enabled the plugin "apt"
ln: failed to create symbolic link '/root/.bash-config/plugins/enabled/bash-aliases.plugin.bash': No such file or directory
Enabled the plugin "bash-aliases"
ln: failed to create symbolic link '/root/.bash-config/plugins/enabled/bash-colors.plugin.bash': No such file or directory
Enabled the plugin "bash-colors"
ln: failed to create symbolic link '/root/.bash-config/plugins/enabled/bashrc.plugin.bash': No such file or directory
Enabled the plugin "bashrc"
ln: failed to create symbolic link '/root/.bash-config/plugins/enabled/files.plugin.bash': No such file or directory
Enabled the plugin "files"
ln: failed to create symbolic link '/root/.bash-config/plugins/enabled/git.plugin.bash': No such file or directory
Enabled the plugin "git"
ln: failed to create symbolic link '/root/.bash-config/plugins/enabled/ls.plugin.bash': No such file or directory
Enabled the plugin "ls"
ln: failed to create symbolic link '/root/.bash-config/plugins/enabled/networking.plugin.bash': No such file or directory
Enabled the plugin "networking"
ln: failed to create symbolic link '/root/.bash-config/plugins/enabled/systemd.plugin.bash': No such file or directory
Enabled the plugin "systemd"
ln: failed to create symbolic link '/root/.bash-config/plugins/enabled/vim.plugin.bash': No such file or directory
Enabled the plugin "vim"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.