Last active
February 26, 2016 14:59
-
-
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
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
# 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