victorbrca / bash-config Goto Github PK
View Code? Open in Web Editor NEWA simple Bash framework
License: MIT License
A simple Bash framework
License: MIT License
$ 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
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
When searching for previous commands with the arrow keys bash is not refreshing properly. This is most likely due to the theme colors.
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"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.