Skip to content

Instantly share code, notes, and snippets.

@TrainerGuy22
Created July 24, 2014 21:32
Show Gist options
  • Save TrainerGuy22/855d60a5d1b86717472f to your computer and use it in GitHub Desktop.
Save TrainerGuy22/855d60a5d1b86717472f to your computer and use it in GitHub Desktop.
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