Merge branch 'master' into install-sh

This commit is contained in:
Muhammad Herdiansyah 2017-07-01 17:17:52 +07:00
commit 24131bf430
8 changed files with 125 additions and 125 deletions

View file

@ -17,7 +17,7 @@ before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install screenresolution; fi - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install screenresolution; fi
script: script:
- time ./neofetch --ascii --config config/travis -v - time ./neofetch --ascii --config config/travis.conf -v
# See this wiki page for why we're disabling these errors. # See this wiki page for why we're disabling these errors.
# https://github.com/dylanaraps/neofetch/wiki/Shellcheck-Exclusions # https://github.com/dylanaraps/neofetch/wiki/Shellcheck-Exclusions
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then shellcheck neofetch -e SC1090,SC2009,SC2012,SC2016,SC2034,SC2128,SC2153,SC2154,SC2178,SC2010; fi - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then shellcheck neofetch -e SC1090,SC2009,SC2012,SC2016,SC2034,SC2128,SC2153,SC2154,SC2178,SC2010; fi

View file

@ -1,73 +1,17 @@
## Contributors ## Contributors
- **[@MatthewCox](https://github.com/MatthewCox)**
- **[@dawidd6](https://github.com/dawidd6)**
- **[@erikdubois](https://github.com/erikdubois)**
- **[@mstraube](https://github.com/mstraube)**
- **[@Artoriuz](https://github.com/Artoriuz)**
- **[@WilsonRU](https://github.com/WilsonRU)**
- **[@Takeya-Yuki](https://github.com/Takeya-Yuki)**
- **[@LER0ever](https://github.com/LER0ever)**
## Operating System
- Added support for Arch XFerience. **[@mstraube](https://github.com/mstraube)**
- Added support for CloverOS.
- Added support for Maui. **[@mstraube](https://github.com/mstraube)**
- Added support for KS Linux. **[@Takeya-Yuki](https://github.com/Takeya-Yuki)**
## General
- Minimum required BASH version is now 3.2.
- (Neofetch has always used 3.2+ features, I've just made it obvious now in the documentation.)
- Fixed config file not being created.
## Images
- [w3m] Added `--loop` flag which makes Neofetch draw the image once per second.
- This is a workaround to the images disappearing on resize and workspace switch.
- Use Ctrl+C to exit.
- [w3m] Fixed w3m-img not found on FreeBSD 12. **[@Artoriuz](https://github.com/Artoriuz)**
## Ascii
- Added Ubuntu-MATE ascii art.
- Fixed ArchLabs ascii art. **[@erikdubois](https://github.com/erikdubois)**
- Updated GoboLinux ascii art. **[@WilsonRU](https://github.com/WilsonRU)**
- Fixed `--ascii_distro windows10` not working.
## Info ## Info
**Distro** **CPU**
- [Solaris, AIX, Haiku] The machine architecture will now be shown properly instead of machine ID. - [Linux] Fixed inaccurate output on ARM SoC devices.
**Terminal Emulator** **Terminal**
- Added support for Neovim terminal emulator. **[@LER0ever](https://github.com/LER0ever)** - [SSH] Fixed infinite loop if neofetch is run on non-interactive shells.
- Added font support for mate-terminal. **[@mstraube](https://github.com/mstraube)**
- [Termite] Fix font mismatch. **[@MatthewCox](https://github.com/MatthewCox)**
- Use `$SSH_TTY` for terminal detection if machine is connected via SSH.
- Break from loop if PPID can't be accessed/not found.
**GPU**
- [Linux] Fixed GPU sort.
**Song**
- Do not detect ibus\* or indicator\* as player. **[@dawidd6](https://github.com/dawidd6)**
**Model**
- Specify when running on a Hackintosh. **[@LER0ever](https://github.com/LER0ever)**
**Memory** ## Images
- [FreeBSD]: Fix inaccurate free memory calculation. - Fixed division by 0 error in XTerm.

View file

@ -10,7 +10,7 @@ Neofetch is a CLI system information tool written in BASH. Neofetch displays inf
Neofetch is highly customizable through the use of command line flags or the user config file. There are over 50 config options to mess around with and there's the `print_info()` function and friends which let you add your own custom info. Neofetch is highly customizable through the use of command line flags or the user config file. There are over 50 config options to mess around with and there's the `print_info()` function and friends which let you add your own custom info.
Neofetch can be used on any OS that has BASH 3.2+, it's just a matter of adding support. If your OS/Distro isn't in the list below, feel free to open an issue on the repo and I'll gladly add support. Neofetch currently supports `Linux`, `MacOS`, `iOS`, `BSD`, `Solaris`, `Android`, `Haiku`, `GNU Hurd`, `MINIX`, `AIX`, and `Windows (Cygwin/MSYS2/MinGW/Windows 10 Linux subsystem)`. Neofetch can be used on any OS that has BASH 3.2+, it's just a matter of adding support. If your OS/Distro isn't in the list below, feel free to open an issue on the repo and I'll gladly add support. Neofetch currently supports `Linux`, `MacOS`, `iOS`, `BSD`, `Solaris`, `Android`, `Haiku`, `GNU Hurd`, `MINIX`, `AIX`, `IRIX`, and `Windows (Cygwin/MSYS2/MinGW/Windows 10 Linux subsystem)`.
For more information: For more information:

19
ascii/distro/irix Normal file
View file

@ -0,0 +1,19 @@
${c1} ./ohmNd/ +dNmho/-
`:+ydNMMMMMMMM.-MMMMMMMMMdyo:.
`hMMMMMMNhs/sMMM-:MMM+/shNMMMMMMh`
-NMMMMMmo-` /MMM-/MMM- `-omMMMMMN.
`.`-+hNMMMMMNhyMMM-/MMMshmMMMMMmy+...`
+mMNds:-:sdNMMMMMMMyyMMMMMMMNdo:.:sdMMm+
dMMMMMMmy+.-/ymNMMMMMMMMNmy/-.+hmMMMMMMd
oMMMMmMMMMNds:.+MMMmmMMN/.-odNMMMMmMMMM+
.MMMM-/ymMMMMMmNMMy..hMMNmMMMMMmy/-MMMM.
hMMM/ `/dMMMMMMMN////NMMMMMMMd/. /MMMh
/MMMdhmMMMmyyMMMMMMMMMMMMhymMMMmhdMMM:
`mMMMMNho//sdMMMMM//NMMMMms//ohNMMMMd
`/so/:+ymMMMNMMMM` mMMMMMMMmh+::+o/`
`yNMMNho-yMMMM` NMMMm.+hNMMNh`
-MMMMd: oMMMM. NMMMh :hMMMM-
-yNMMMmooMMMM- NMMMyomMMMNy-
.omMMMMMMMM-`NMMMMMMMmo.
`:hMMMMMM. NMMMMMh/`
.odNm+ /dNms.

View file

@ -1,5 +1,3 @@
#!/usr/bin/env bash
#
# Neofetch config file # Neofetch config file
# https://github.com/dylanaraps/neofetch # https://github.com/dylanaraps/neofetch
@ -724,4 +722,4 @@ image_host="teknik"
# #
# NOTE: Don't change this value, neofetch reads this to determine # NOTE: Don't change this value, neofetch reads this to determine
# how to handle backwards compatibility. # how to handle backwards compatibility.
config_version="3.1.0-git" config_version="3.2.1-git"

View file

@ -1,5 +1,3 @@
#!/usr/bin/env bash
#
# Neofetch config file for travis.ci # Neofetch config file for travis.ci
# https://github.com/dylanaraps/neofetch # https://github.com/dylanaraps/neofetch

113
neofetch
View file

@ -9,7 +9,7 @@
# https://github.com/dylanaraps/ # https://github.com/dylanaraps/
# Neofetch version. # Neofetch version.
version="3.1.0-git" version="3.2.1-git"
bash_version="${BASH_VERSION/.*}" bash_version="${BASH_VERSION/.*}"
sys_locale="${LANG:-C}" sys_locale="${LANG:-C}"
@ -20,8 +20,8 @@ old_ifs="$IFS"
export LC_ALL=C export LC_ALL=C
export LANG=C export LANG=C
# Add /usr/xpg4/bin, /usr/sbin, and /sbin to PATH. # Add /usr/xpg4/bin, /usr/sbin, /sbin, and /usr/etc to PATH.
export PATH="/usr/xpg4/bin:/usr/sbin:/sbin:${PATH}" export PATH="/usr/xpg4/bin:/usr/sbin:/sbin:/usr/etc:${PATH}"
# Set no case match. # Set no case match.
shopt -s nocasematch shopt -s nocasematch
@ -43,6 +43,7 @@ get_os() {
"Haiku") os="Haiku" ;; "Haiku") os="Haiku" ;;
"MINIX") os="MINIX" ;; "MINIX") os="MINIX" ;;
"AIX") os="AIX" ;; "AIX") os="AIX" ;;
"IRIX64") os="IRIX" ;;
*) *)
printf "%s\n" "Unknown OS detected: '$kernel_name', aborting..." >&2 printf "%s\n" "Unknown OS detected: '$kernel_name', aborting..." >&2
printf "%s\n" "Open an issue on GitHub to add support for your OS." >&2 printf "%s\n" "Open an issue on GitHub to add support for your OS." >&2
@ -211,17 +212,21 @@ get_distro() {
"AIX") "AIX")
distro="AIX $(oslevel)" distro="AIX $(oslevel)"
;; ;;
"IRIX")
distro="IRIX ${kernel_version}"
;;
esac esac
[[ -z "$distro" ]] && distro="$os (Unknown)" [[ -z "$distro" ]] && distro="$os (Unknown)"
# Get OS architecture. # Get OS architecture.
if [[ "$os_arch" == "on" ]]; then
case "$os" in case "$os" in
"Solaris" | "AIX" | "BSD" | "Haiku") machine_arch="$(uname -p)" ;; "Solaris" | "AIX" | "BSD" | "Haiku" | "IRIX") machine_arch="$(uname -p)" ;;
*) machine_arch="$(uname -m)" ;; *) machine_arch="$(uname -m)" ;;
esac esac
if [[ "$os_arch" == "on" ]]; then
distro+=" ${machine_arch}" distro+=" ${machine_arch}"
fi fi
@ -311,7 +316,7 @@ get_model() {
;; ;;
"AIX") "AIX")
model="$(prtconf | awk -F':' '/System Model/ {printf $2}')" model="$(/usr/bin/uname -M)"
;; ;;
esac esac
@ -336,8 +341,8 @@ get_title() {
} }
get_kernel() { get_kernel() {
# Since AIX is an integrated system, it's better to skip this function altogether # Since these OS are integrated systems, it's better to skip this function altogether
[[ "$os" == "AIX" ]] && return [[ "$os" =~ (AIX|IRIX) ]] && return
case "$kernel_shorthand" in case "$kernel_shorthand" in
"on") kernel="$kernel_version" ;; "on") kernel="$kernel_version" ;;
@ -385,7 +390,7 @@ get_uptime() {
seconds="${seconds/.*}" seconds="${seconds/.*}"
;; ;;
"AIX") "AIX" | "IRIX")
t="$(LC_ALL=POSIX ps -o etime= -p 1)" t="$(LC_ALL=POSIX ps -o etime= -p 1)"
d="0" h="0" d="0" h="0"
case "$t" in *"-"*) d="${t%%-*}"; t="${t#*-}";; esac case "$t" in *"-"*) d="${t%%-*}"; t="${t#*-}";; esac
@ -554,6 +559,10 @@ get_packages() {
packages="$(lslpp -J -l -q | grep -cv '^#')" packages="$(lslpp -J -l -q | grep -cv '^#')"
packages="$((packages+=$(rpm -qa | wc -l)))" packages="$((packages+=$(rpm -qa | wc -l)))"
;; ;;
"IRIX")
packages="$(($(versions -b | wc -l)-3))"
;;
esac esac
((packages == 0)) && unset packages ((packages == 0)) && unset packages
@ -819,9 +828,6 @@ get_cpu() {
case "$os" in case "$os" in
"Linux" | "MINIX" | "Windows") "Linux" | "MINIX" | "Windows")
# Get CPU name. # Get CPU name.
case "$distro" in
"Android"*) cpu="$(getprop ro.product.board)" ;;
*)
case "$machine_arch" in case "$machine_arch" in
"frv" | "hppa" | "m68k" | "openrisc" | "or"* | "powerpc" | "ppc"* | "sparc"*) "frv" | "hppa" | "m68k" | "openrisc" | "or"* | "powerpc" | "ppc"* | "sparc"*)
cpu="$(awk -F':' '/^cpu\t|^CPU/ {printf $2; exit}' /proc/cpuinfo)" cpu="$(awk -F':' '/^cpu\t|^CPU/ {printf $2; exit}' /proc/cpuinfo)"
@ -835,8 +841,7 @@ get_cpu() {
;; ;;
*) *)
cpu="$(awk -F ': | @' '/model name|Processor|^cpu model|chip type|^cpu type/ {printf $2; exit}' /proc/cpuinfo)" cpu="$(awk -F ': | @' '/model name|Processor|^cpu model|chip type|^cpu type/ {printf $2; exit}' /proc/cpuinfo)"
;; [[ "$cpu" == *"processor rev"* ]] && cpu="$(awk -F':' '/Hardware/ {print $2; exit}' /proc/cpuinfo)"
esac
;; ;;
esac esac
@ -982,10 +987,10 @@ get_cpu() {
"AIX") "AIX")
# Get CPU name. # Get CPU name.
cpu="$(prtconf | awk -F':' '/Processor Type/ {printf $2}')" cpu="$(lsattr -El proc0 -a type | awk '{printf $2}')"
# Get CPU speed. # Get CPU speed.
speed="$(prtconf | awk -F':' '/Processor Clock Speed/ {printf $2}')" speed="$(prtconf -s | awk -F':' '{printf $2}')"
speed="${speed/MHz}" speed="${speed/MHz}"
# Get CPU cores. # Get CPU cores.
@ -994,6 +999,17 @@ get_cpu() {
"physical") cores="$(lparstat -i | awk -F':' '/Active Physical CPUs/ {printf $2}')" "physical") cores="$(lparstat -i | awk -F':' '/Active Physical CPUs/ {printf $2}')"
esac esac
;; ;;
"IRIX")
# Get CPU name.
cpu="$(hinv -c processor | awk -F':' '/CPU:/ {printf $2}')"
# Get CPU speed.
speed="$(hinv -c processor | awk '/MHZ/ {printf $2}')"
# Get CPU cores.
cores="$(sysconf NPROC_ONLN)"
;;
esac esac
if [[ "$speed" ]]; then if [[ "$speed" ]]; then
@ -1022,10 +1038,13 @@ get_cpu() {
cpu="${cpu//Quad-Core}" cpu="${cpu//Quad-Core}"
cpu="${cpu//Six-Core}" cpu="${cpu//Six-Core}"
cpu="${cpu//Eight-Core}" cpu="${cpu//Eight-Core}"
cpu="${cpu//, * Compute Cores}"
cpu="${cpu//Core}" cpu="${cpu//Core}"
cpu="${cpu//with Radeon * Graphics}" cpu="${cpu//with Radeon * Graphics}"
cpu="${cpu//, altivec supported}" cpu="${cpu//, altivec supported}"
cpu="${cpu//FPU*}" cpu="${cpu//FPU*}"
cpu="${cpu//Chip Revision*}"
cpu="${cpu//Technologies, Inc}"
# Trim spaces from core output # Trim spaces from core output
cores="${cores//[[:space:]]}" cores="${cores//[[:space:]]}"
@ -1047,6 +1066,7 @@ get_cpu() {
cpu="${cpu/AMD }" cpu="${cpu/AMD }"
cpu="${cpu/Intel }" cpu="${cpu/Intel }"
cpu="${cpu/Core? Duo }" cpu="${cpu/Core? Duo }"
cpu="${cpu/Qualcomm }"
[[ "$cpu_shorthand" == "tiny" ]] && cpu="${cpu/@*}" [[ "$cpu_shorthand" == "tiny" ]] && cpu="${cpu/@*}"
;; ;;
@ -1072,6 +1092,7 @@ get_cpu_usage() {
"Haiku") cores="$(sysinfo -cpu | grep -c -F 'CPU #')" ;; "Haiku") cores="$(sysinfo -cpu | grep -c -F 'CPU #')" ;;
"iPhone OS") cores="${cpu/*\(}"; cores="${cores/\)*}" ;; "iPhone OS") cores="${cpu/*\(}"; cores="${cores/\)*}" ;;
"AIX") cores="$(lparstat -i | awk -F':' '/Online Virtual CPUs/ {printf $2}')" ;; "AIX") cores="$(lparstat -i | awk -F':' '/Online Virtual CPUs/ {printf $2}')" ;;
"IRIX") cores="$(sysconf NPROC_ONLN)"
esac esac
fi fi
@ -1304,6 +1325,13 @@ get_memory() {
mem_used="$((mem_total - mem_free))" mem_used="$((mem_total - mem_free))"
mem_label="MB" mem_label="MB"
;; ;;
"IRIX")
mem_stat=($(pmem | head -1))
mem_total="$((mem_stat[3] / 1024))"
mem_free="$((mem_stat[5] / 1024))"
mem_used="$((mem_total - mem_free))"
;;
esac esac
memory="${mem_used}${mem_label:-MiB} / ${mem_total}${mem_label:-MiB}" memory="${mem_used}${mem_label:-MiB} / ${mem_total}${mem_label:-MiB}"
@ -1659,7 +1687,7 @@ get_term() {
# Check $PPID for terminal emulator. # Check $PPID for terminal emulator.
while [[ -z "$term" ]]; do while [[ -z "$term" ]]; do
if [[ "$SSH_CONNECTION" ]]; then if [[ "$SSH_CONNECTION" ]]; then
term="$SSH_TTY" term="$SSH_TTY"; break
else else
parent="$(get_ppid "$parent")" parent="$(get_ppid "$parent")"
[[ -z "$parent" ]] && break [[ -z "$parent" ]] && break
@ -1846,12 +1874,13 @@ get_disk() {
type -p df >/dev/null 2>&1 || \ type -p df >/dev/null 2>&1 || \
{ err "Disk requires 'df' to function. Install 'df' to get disk info."; return; } { err "Disk requires 'df' to function. Install 'df' to get disk info."; return; }
# Get "df" flags. # Get "df" version.
case "$os" in df_version="$(df --version 2>&1)"
"Haiku") err "Disk doesn't work on Haiku due to the non-standard 'df'"; return ;; case "$df_version" in
"Mac OS X") df_flags=(-P -h) ;; *"blocks"*) err "Your version of df cannot be used due to the non-standard flags" ; return ;; # Haiku
"AIX") df_flags=(-P -g) ;; *"IMitv"*) df_flags=(-P -g) ;; # AIX
*) df_flags=(-h) ;; *"befhikm"*) df_flags=(-P -k) ;; # IRIX
*) df_flags=(-P -h) ;;
esac esac
# Create an array called 'disks' where each element is a separate line from # Create an array called 'disks' where each element is a separate line from
@ -1870,7 +1899,10 @@ get_disk() {
disk_info=($disk) disk_info=($disk)
disk_perc="${disk_info[4]/'%'}" disk_perc="${disk_info[4]/'%'}"
disk="${disk_info[2]/i} / ${disk_info[1]/i} (${disk_perc}%)" case "$df_version" in
*"befhikm"*) disk="$((disk_info[2]/1024/1024))G / $((disk_info[1]/1024/1024))G (${disk_perc}%)" ;;
*) disk="${disk_info[2]/i} / ${disk_info[1]/i} (${disk_perc}%)" ;;
esac
# Subtitle. # Subtitle.
case "$disk_subtitle" in case "$disk_subtitle" in
@ -1979,7 +2011,7 @@ get_battery() {
get_local_ip() { get_local_ip() {
case "$os" in case "$os" in
"Linux" | "BSD" | "Solaris" | "AIX") "Linux" | "BSD" | "Solaris" | "AIX" | "IRIX")
local_ip="$(ip route get 1 | awk -F'src' '{print $2; exit}')" local_ip="$(ip route get 1 | awk -F'src' '{print $2; exit}')"
local_ip="${local_ip/uid*}" local_ip="${local_ip/uid*}"
[[ -z "$local_ip" ]] && local_ip="$(ifconfig -a | awk '/broadcast/ {print $2; exit}')" [[ -z "$local_ip" ]] && local_ip="$(ifconfig -a | awk '/broadcast/ {print $2; exit}')"
@ -2038,7 +2070,7 @@ get_install_date() {
esac esac
;; ;;
"Haiku") install_file="/boot" ;; "Haiku") install_file="/boot" ;;
"BSD" | "MINIX") "BSD" | "MINIX" | "IRIX")
case "$kernel_name" in case "$kernel_name" in
"FreeBSD") install_file="/etc/hostid" ;; "FreeBSD") install_file="/etc/hostid" ;;
"NetBSD" | "DragonFly"*) install_file="/etc/defaults/rc.conf" ;; "NetBSD" | "DragonFly"*) install_file="/etc/defaults/rc.conf" ;;
@ -2054,7 +2086,7 @@ get_install_date() {
*"crtime"*) install_date="$(ls -tdcE "$install_file" | awk '{printf $6 " " $7}')" ;; # xpg4 (Solaris) *"crtime"*) install_date="$(ls -tdcE "$install_file" | awk '{printf $6 " " $7}')" ;; # xpg4 (Solaris)
*"ACFHLRSZ"*) install_date="$(ls -dl "$install_file" | awk '{printf $6 " " $7}')" ;; # Toybox *"ACFHLRSZ"*) install_date="$(ls -dl "$install_file" | awk '{printf $6 " " $7}')" ;; # Toybox
*"GNU coreutils"*) install_date="$(ls -tcd --full-time "$install_file" | awk '{printf $6 " " $7}')" ;; *"GNU coreutils"*) install_date="$(ls -tcd --full-time "$install_file" | awk '{printf $6 " " $7}')" ;;
*"ACFHLNRS"*) err "Install Date doesn't work because your 'ls' does not support showing full date and time."; return ;; # AIX ls *"ACFHLNRS"* | *"RadC1xmnlog"*) err "Install Date doesn't work because your 'ls' does not support showing full date and time."; return ;; # AIX ls / IRIX ls
*) install_date="$(ls -dlctT "$install_file" | awk '{printf $9 " " $6 " "$7 " " $8}')" ;; *) install_date="$(ls -dlctT "$install_file" | awk '{printf $9 " " $6 " "$7 " " $8}')" ;;
esac esac
@ -2363,7 +2395,7 @@ get_term_size() {
fi fi
# Get terminal width/height if \033[14t is unsupported. # Get terminal width/height if \033[14t is unsupported.
if [[ -z "$term_width" ]]; then if [[ -z "$term_width" ]] || (( "$term_width" < 50 )); then
if type -p xdotool >/dev/null 2>&1; then if type -p xdotool >/dev/null 2>&1; then
current_window="$(xdotool getactivewindow)" current_window="$(xdotool getactivewindow)"
source <(xdotool getwindowgeometry --shell "$current_window") source <(xdotool getwindowgeometry --shell "$current_window")
@ -3450,6 +3482,11 @@ get_distro_colors() {
set_colors 3 7 set_colors 3 7
ascii_file="solaris" ascii_file="solaris"
;; ;;
"IRIX"*)
set_colors 4 7
ascii_file="irix"
;;
esac esac
;; ;;
esac esac
@ -3555,11 +3592,12 @@ get_full_path() {
} }
get_default_config() { get_default_config() {
if [[ -f "CONFDIR/config" ]]; then if [[ -f "CONFDIR/config.conf" ]]; then
default_config="CONFDIR/config" default_config="CONFDIR/config.conf"
else else
[[ -z "$script_dir" ]] && script_dir="$(get_full_path "$0")" [[ -z "$script_dir" ]] && script_dir="$(get_full_path "$0")"
default_config="${script_dir%/*}/config/config" default_config="${script_dir%/*}/config/config.conf"
fi fi
if source "$default_config"; then if source "$default_config"; then
@ -3584,15 +3622,18 @@ get_user_config() {
if [[ -f "${XDG_CONFIG_HOME}/neofetch/config" ]]; then if [[ -f "${XDG_CONFIG_HOME}/neofetch/config" ]]; then
config_file="${XDG_CONFIG_HOME}/neofetch/config" config_file="${XDG_CONFIG_HOME}/neofetch/config"
elif [[ -f "CONFDIR/config" ]]; then elif [[ -f "${XDG_CONFIG_HOME}/neofetch/config.conf" ]]; then
cp "CONFDIR/config" "${XDG_CONFIG_HOME}/neofetch" config_file="${XDG_CONFIG_HOME}/neofetch/config.conf"
config_file="${XDG_CONFIG_HOME}/neofetch/config"
elif [[ -f "CONFDIR/config.conf" ]]; then
cp "CONFDIR/config.conf" "${XDG_CONFIG_HOME}/neofetch"
config_file="${XDG_CONFIG_HOME}/neofetch/config.conf"
else else
[[ -z "$script_dir" ]] && script_dir="$(get_full_path "$0")" [[ -z "$script_dir" ]] && script_dir="$(get_full_path "$0")"
cp "${script_dir%/*}/config/config" "${XDG_CONFIG_HOME}/neofetch" cp "${script_dir%/*}/config/config.conf" "${XDG_CONFIG_HOME}/neofetch"
config_file="${XDG_CONFIG_HOME}/neofetch/config" config_file="${XDG_CONFIG_HOME}/neofetch/config.conf"
fi fi
source "$config_file" source "$config_file"

View file

@ -1,5 +1,5 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.3. .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.4.
.TH NEOFETCH "1" "April 2017" "Neofetch 3.1.0-git" "User Commands" .TH NEOFETCH "1" "June 2017" "Neofetch 3.2.1-git" "User Commands"
.SH NAME .SH NAME
Neofetch \- A fast, highly customizable system info script Neofetch \- A fast, highly customizable system info script
.SH SYNOPSIS .SH SYNOPSIS