Upgrades to editx integrating the editbin alias.
Changes to new install detection.
This commit is contained in:
parent
3c1a6e7374
commit
056ab01ed4
3 changed files with 60 additions and 32 deletions
22
daisy.source
22
daisy.source
|
|
@ -64,13 +64,13 @@ export LD_AVAILABLE=0
|
|||
|
||||
# Config folder setup
|
||||
export LD_CONFIG_FOLDER="$HOME/.config/lackadaisical"
|
||||
export LD_NEW_INSTALL=
|
||||
export LD_NEW_INSTALL=0
|
||||
|
||||
if [[ ! -d "$LD_CONFIG_FOLDER" ]];
|
||||
then
|
||||
# Create the folder with its basics
|
||||
mkdir -p "$LD_CONFIG_FOLDER"
|
||||
new_install=1
|
||||
export LD_NEW_INSTALL=1
|
||||
fi
|
||||
|
||||
# Multiple default source files
|
||||
|
|
@ -215,12 +215,6 @@ function editpeco
|
|||
tree --noreport -fia . | peco --prompt "Press CTRL+C to quit - query:" --exec "xargs -o -I{} $EDITOR {}"
|
||||
}
|
||||
|
||||
# for convenience purposes
|
||||
function editbin
|
||||
{
|
||||
editx $(which $1)
|
||||
}
|
||||
|
||||
# sets a new editor based on commony available ones, and some visual ones
|
||||
function ched
|
||||
{
|
||||
|
|
@ -346,15 +340,23 @@ _daisy_def_alias restore
|
|||
_daisy_def_alias combine
|
||||
_daisy_def_alias help
|
||||
_daisy_def_alias list
|
||||
_daisy_def_alias check
|
||||
|
||||
_daisy_source_configs
|
||||
|
||||
###############################################################################
|
||||
# check for dependencies @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
|
||||
###############################################################################
|
||||
if [[ $new_install -eq 1 ]];
|
||||
if [[ LD_NEW_INSTALL -eq 1 ]];
|
||||
then
|
||||
daisy check
|
||||
echo "Thank you for installing LACKADAISICAL!"
|
||||
daisy list
|
||||
echo "For more information, run 'daisy help'."
|
||||
echo "For information on a specific command, run 'daisy help <cmd>'."
|
||||
echo -e "\nLACKADAISICAL has several dependencies, please run 'daisy check'"
|
||||
echo "to check for dependencies and see what commands require them."
|
||||
echo -e "\nTo uninstall LACKADAISICAL, simply remove the source line from your"
|
||||
echo "shell RC, and reload it. This does not remove the files!"
|
||||
fi
|
||||
|
||||
###############################################################################
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue