Skip to content

Instantly share code, notes, and snippets.

@aron-bordin
Last active August 29, 2015 14:23
Show Gist options
  • Save aron-bordin/9774afa559267bf3837b to your computer and use it in GitHub Desktop.
Save aron-bordin/9774afa559267bf3837b to your computer and use it in GitHub Desktop.
fish.config
function fish_prompt
if test -z $WINDOW
printf '{%s%s%s at %s%s%s%s%s%s%s}$ ' (set_color "#FFFF00") (whoami) (set_color "#00FF00") (set_color "#FFFF00") (hostname|cut -d . -f 1) (set_color $fish_color_cwd) (prompt_pwd)(set_color "#FFFF00") (__fish_git_prompt) (set_color normal)
else
printf '{%s%s%s at %s%s%s(%s)%s%s%s%s}$ ' (set_color "#FFFF00") (whoami) (set_color "#00FF00") (set_color "#FFFF00") (hostname|cut -d . -f 1) (set_color $fish_color_cwd) (echo $WINDOW) (prompt_pwd)(set_color "#FFFF00") (__fish_git_prompt) (set_color normal)
#printf '%s%s at %s%s%s(%s)%s%s%s$ ' (set_color white) (whoami) (set_color purple) (hostname|cut -d . -f 1) (set_color white) (echo $WINDOW) (set_color $fish_color_cwd) (prompt_pwd) (set_color normal)
end
end
function fish_greeting
set_color "#FFFF00"
echo ""
echo "Welcome to the Cyberspace"
echo "A consensual hallucination experienced daily by billions of legitimate operators, in every nation. We are all connected."
echo ""
echo "Powered by Hosaka ®"
echo ""
end
function su
/bin/su --shell=/usr/bin/fish $argv
end
function gccd -d 'Hosaka GCC compiler'
if test (count $argv) = 0
echo 'Please, provide the biochip DNA or source code!'
else
if test (count $argv) -gt 1
gcc -lm $argv[2..-1] $argv[1].c -o $argv[1]
else
gcc -lm $argv[1].c -o $argv[1]
end
if test $status = 0
eval ./$argv[1]
else
echo 'Failed to build this biochip'
end
end
end
set -gx ZEND_TOOL_INCLUDE_PATH /usr/share/zf1/library
set -gx EDITOR nano
set -gx ANT_ROOT /usr/bin
set -gx NDK_ROOT /opt/android-ndk
set -gx ANDROID_SDK_ROOT /opt/android-sdk
set -gx JAVA_HOME /usr/lib/jvm/java-7-openjdk
# Add environment variable COCOS_CONSOLE_ROOT for cocos2d-x
set -gx COCOS_CONSOLE_ROOT /home/neo/Frameworks/cocos2d-js-v3.5/tools/cocos2d-console/bin
set -gx PATH $COCOS_CONSOLE_ROOT $PATH
set -gx PATH ~/.composer/vendor/bin $PATH
set -gx EMSCRIPTEN /usr/lib/emscripten
set -gx PATH $EMSCRIPTEN $PATH
function restart_inotify
sudo sysctl -p
end
function start_web
sudo systemctl start httpd.service
sudo systemctl start mysqld.service
end
# Add environment variable COCOS_X_ROOT for cocos2d-x
set -gx COCOS_X_ROOT /home/neo/Frameworks/cocos2d-x-3.3
set -gx PATH $COCOS_X_ROOT $PATH
# Add environment variable COCOS_TEMPLATES_ROOT for cocos2d-x
set -gx COCOS_TEMPLATES_ROOT /home/neo/Frameworks/cocos2d-x-3.3/templates
set -gx PATH $COCOS_TEMPLATES_ROOT $PATH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment