File zeus.fish of Package branding-zeus

# branding-zeus config

set -g fish_greeting

function su
   command su --shell=/usr/bin/fish $argv
end

# recreate some openSUSE aliases
#alias o='less'
#alias ..='cd ..'
#alias ...='cd ../..'
#alias cd..='cd ..'
#alias rd=rmdir
#alias egrep='grep -E --color=auto'
#alias fgrep='grep -F --color=auto'
#alias grep='grep --color=auto'
#alias ip='ip --color=auto'
#alias md='mkdir -p'
#alias rehash='hash -r'
#alias unmount='echo "Error: Try the command: umount"

function o
    less $argv
end

function ..
    cd ..
end

function ... 
    cd ../..
end

function cd.. 
    cd ..
end

function rd
    rmdir $argv
end

function egrep
    grep -E --color=auto $argv
end

function fgrep
    grep -F --color=auto $argv
end

function grep
    /usr/bin/grep --color=auto $argv
end

function ip
    /usr/bin/ip --color=auto $argv
end

function md
    mkdir -p $argv
end

function rehash
    hash -r $argv
end

function unmount
    echo 'Error: Try the command: umount'
end

# ls aliases
#alias dir='ls -l'
#alias ll='ls -l'
#alias la='ls -la'
#alias l='ls -alF'
#alias ls-l='ls -l'

function dir
    ls -l $argv
end

function ll
    ls -l $argv
end

function la
    ls -la $argv
end

function l
    ls -alF $argv
end

function ls-l
    ls-l $argv
end
openSUSE Build Service is sponsored by