Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=63ce9356188bc5a60d8c7644ae6b19e0cd309b01
commit 63ce9356188bc5a60d8c7644ae6b19e0cd309b01 Author: DeX77 <[email protected]> Date: Thu Oct 8 16:51:50 2015 +0200 fish-2.2.0-2-x86_64 * fix colors diff --git a/source/apps-extra/fish/FrugalBuild b/source/apps-extra/fish/FrugalBuild index 6799675..251bd31 100644 --- a/source/apps-extra/fish/FrugalBuild +++ b/source/apps-extra/fish/FrugalBuild @@ -6,7 +6,7 @@ options+=('asneeded') pkgname=fish pkgver=2.2.0 -pkgrel=1 +pkgrel=2 pkgdesc="fish is a user friendly command line shell for UNIX-like operating systems." url="http://fishshell.com" depends=('ncurses') @@ -16,8 +16,15 @@ archs=('i686' 'x86_64') backup=('etc/fish/config.fish') license="GPL2" up2date="Flasttar $url" -source=($url/files/$pkgver/$pkgname-$pkgver.tar.gz) +source=($url/files/$pkgver/$pkgname-$pkgver.tar.gz \ + config.fish) Fconfopts="docdir=/usr/share/doc/$pkgname-$pkgver --prefix=/usr" -sha1sums=('cd7935b3301444afa88afb272d8db5542085c9f2') +sha1sums=('cd7935b3301444afa88afb272d8db5542085c9f2' \ + 'b7e553ca310cdafcd0343d855a2718fb1d06c6c2') + +build(){ + Fbuild + Ffile /etc/fish/config.fish +} # optimization OK diff --git a/source/apps-extra/fish/config.fish b/source/apps-extra/fish/config.fish new file mode 100644 index 0000000..1b82a78 --- /dev/null +++ b/source/apps-extra/fish/config.fish @@ -0,0 +1,48 @@ +# +# Init file for fish +# + +# +# Some things should only be done for login terminals +# + +if status --is-login + + # + # Set some value for LANG if nothing was set before, and this is a + # login shell. + # + + if not set -q LANG >/dev/null + set -gx LANG en_US.UTF-8 + end + + # Check for i18n information in + # /etc/sysconfig/i18n + + if test -f /etc/sysconfig/i18n + eval (cat /etc/sysconfig/i18n |sed -ne 's/^\([a-zA-Z]*\)=\(.*\)$/set -gx \1 \2;/p') + end + + # + # Put linux consoles in unicode mode. + # + + if test "$TERM" = linux + if expr "$LANG" : ".*\.[Uu][Tt][Ff].*" >/dev/null + if which unicode_start >/dev/null + unicode_start + end + end + end +end + + +## @Dex -- I know hackish but .. :) + +setenv LS_COLORS ':no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:ex=01;32:*.bat=01;32:*.BAT=01;32:*.btm=01;32:*.BTM=01;32:*.cmd=01;32:*.CMD=01;32:*.com=01;32:*.COM=01;32:*.dll=01;32:*.DLL=01;32:*.exe=01;32:*.EXE=01;32:*.arj=01;31:*.bz2=01;31:*.deb=01;31:*.gz=01;31:*.lzh=01;31:*.fpm=01;31:*.rpm=01;31:*.tar=01;31:*.taz=01;31:*.tb2=01;31:*.tbz2=01;31:*.tbz=01;31:*.tgz=01;31:*.tz2=01;31:*.z=01;31:*.Z=01;31:*.zip=01;31:*.ZIP=01;31:*.zoo=01;31:*.asf=01;35:*.ASF=01;35:*.avi=01;35:*.AVI=01;35:*.bmp=01;35:*.BMP=01;35:*.flac=01;35:*.FLAC=01;35:*.gif=01;35:*.GIF=01;35:*.jpg=01;35:*.JPG=01;35:*.jpeg=01;35:*.JPEG=01;35:*.m2a=01;35:*.M2a=01;35:*.m2v=01;35:*.M2V=01;35:*.mov=01;35:*.MOV=01;35:*.mp3=01;35:*.MP3=01;35:*.mpeg=01;35:*.MPEG=01;35:*.mpg=01;35:*.MPG=01;35:*.ogg=01;35:*.OGG=01;35:*.ppm=01;35:*.rm=01;35:*.RM=01;35:*.tga=01;35:*.TGA=01;35:*.tif=01;35:*.TIF=01;35:*.wav=01;35:*.WAV=01;35:*.wmv=01;35:*.WMV=01;35:*.xbm=01;35:*.xpm=01;35:' +setenv LS_OPTIONS ' --color=auto -F -b -T 0' +alias ls "/usr/bin/ls $LS_OPTIONS" +alias dir "/usr/bin/ls $LS_OPTIONS --format=vertical" +alias vdir "/usr/bin/ls $LS_OPTIONS --format=long" + _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
