Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
neofetch
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
neofetch
Commits
41316aaf
Commit
41316aaf
authored
Jan 18, 2017
by
Dylan Araps
Committed by
GitHub
Jan 18, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #622 from konimex/master
Config: Move default config to /etc (#620)
parents
02564a1b
e5602a0d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
21 deletions
+17
-21
Makefile
Makefile
+13
-17
neofetch
neofetch
+4
-4
No files found.
Makefile
View file @
41316aaf
PREFIX
?=
/usr
PREFIX
=
/usr
RM
?=
rm
-f
INSTALL_DIR
?=
install
-m755
-d
INSTALL_PROG
?=
install
-m755
INSTALL_FILE
?=
install
-m644
all
:
all
:
@
echo
Run
\'
make
install
\'
to
install
Neofetch
@
echo
Run
\'
make
install
\'
to
install
Neofetch
install
:
install
:
$(INSTALL_DIR)
$(DESTDIR)$(PREFIX)
/bin
mkdir
-p
$(DESTDIR)$(PREFIX)
/bin
$(INSTALL_DIR)
$(DESTDIR)$(PREFIX)
/share/neofetch/ascii/distro
mkdir
-p
$(DESTDIR)$(PREFIX)
/share/man/man1
$(INSTALL_DIR)
$(DESTDIR)$(PREFIX)
/share/man/man1
mkdir
-p
$(DESTDIR)
/etc/neofetch
$(INSTALL_PROG)
neofetch
$(DESTDIR)$(PREFIX)
/bin/neofetch
mkdir
-p
$(DESTDIR)$(PREFIX)
/share/neofetch/ascii/distro
$(INSTALL_FILE)
neofetch.1
$(DESTDIR)$(PREFIX)
/share/man/man1/neofetch.1
cp
-p
neofetch
$(DESTDIR)$(PREFIX)
/bin/neofetch
$(INSTALL_FILE)
config/config
$(DESTDIR)$(PREFIX)
/share/neofetch/config
cp
-p
neofetch.1
$(DESTDIR)$(PREFIX)
/share/man/man1/neofetch.1
$(INSTALL_FILE)
ascii/distro/
*
$(DESTDIR)$(PREFIX)
/share/neofetch/ascii/distro
cp
-p
config/config
$(DESTDIR)
/etc/neofetch/config
cp
-p
ascii/distro/
*
$(DESTDIR)$(PREFIX)
/share/neofetch/ascii/distro
uninstall
:
uninstall
:
$(RM)
$(DESTDIR)$(PREFIX)
/bin/neofetch
rm
-f
$(DESTDIR)$(PREFIX)
/bin/neofetch
$(RM)
$(DESTDIR)$(PREFIX)
/share/man/man1/neofetch.1
rm
-f
$(DESTDIR)$(PREFIX)
/share/man/man1/neofetch.1
$(RM)
-r
$(DESTDIR)$(PREFIX)
/share/neofetch
rm
-f
-r
$(DESTDIR)$(PREFIX)
/share/neofetch
rm
-f
-r
$(DESTDIR)
/etc/neofetch
neofetch
View file @
41316aaf
...
@@ -3269,14 +3269,14 @@ get_script_dir() {
...
@@ -3269,14 +3269,14 @@ get_script_dir() {
}
}
get_default_config
(
)
{
get_default_config
(
)
{
if [[ -f
"/
usr/share
/neofetch/config"
]]; then
if [[ -f
"/
etc
/neofetch/config"
]]; then
default_config=
"/
usr/share
/neofetch/config"
default_config=
"/
etc
/neofetch/config"
elif [[ -f
"/usr/local/share/neofetch/config"
]]; then
elif [[ -f
"/usr/local/share/neofetch/config"
]]; then
default_config=
"/usr/local/share/neofetch/config"
default_config=
"/usr/local/share/neofetch/config"
elif [[ -f
"/data/data/com.termux/files/
usr/share
/neofetch/config"
]]; then
elif [[ -f
"/data/data/com.termux/files/
etc
/neofetch/config"
]]; then
default_config=
"/data/data/com.termux/files/
usr/share
/neofetch/config"
default_config=
"/data/data/com.termux/files/
etc
/neofetch/config"
else
else
get_script_dir
get_script_dir
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment