Skip to content

Instantly share code, notes, and snippets.

@mineroot
Last active February 26, 2016 14:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mineroot/394ef833edc6de8ba9a0 to your computer and use it in GitHub Desktop.
Save mineroot/394ef833edc6de8ba9a0 to your computer and use it in GitHub Desktop.
Config for Linux Shell Fish. Contains short-cuts for frequently used commands. Location: ~/.config/fish/config.fish
# A Powerline like prompt for Bash, ZSH and Fish
function fish_prompt
~/powerline-shell.py $status --shell bare ^/dev/null
end
# list of files
function l
ls --human-readable -l -A
end
# git log
function gitl
git log --oneline --graph
end
# git status
function gits
git status
end
# sudo apt-get install <package_name>
function i
sudo apt-get install $argv
end
# nothing :)
function fish_greeting
end
# git add .
function gita
git add .
end
# git commit -m "Commit message"
function gitc
git commit -m $argv
end
# git fetch
function gitf
git fetch --all
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment