Created
July 24, 2014 21:32
-
-
Save TrainerGuy22/855d60a5d1b86717472f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source $fish_path/plugins/archlinux/pacman/paclist.fish | |
if eval $is_linux | |
alias pkglist='paclist | less -R' | |
end | |
function search | |
for i in (ls) | |
set -l err (cat $i | grep "$argv" > /dev/null) | |
if [ -n $err ] | |
echo $i | |
echo $err | |
end | |
end | |
end | |
function gitsh | |
if [ -n $argv ] | |
hub $argv | |
end | |
/usr/local/bin/gitsh --git hub | |
end | |
function edit | |
if [ -w "$argv" ] | |
$EDITOR "$argv" | |
else | |
echo "User dosen't have write permission, editing as root." | |
sudo $EDITOR "$argv" | |
end | |
end | |
if [ -n $is_mac ] | |
alias julia='/Applications/Julia-0.2.1.app/Contents/Resources/julia/bin/julia' | |
alias finder='open ./' | |
end | |
# Hub. It helps you win at git. | |
alias git='hub' | |
# I like my commands *takes off glasses*, verbose. | |
alias mkdir='mkdir -v' | |
alias mv='mv -v' | |
alias rm='rm -v' | |
alias cp='cp -v' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment