1. Antoine Albertelli
  2. Config files

Commits

Antoine Albertelli  committed b34f73e

reworked my fish config

  • Participants
  • Parent commits f00a99e
  • Branches default

Comments (0)

Files changed (1)

File config.fish

View file
  • Ignore whitespace
+# Opens all parameters
+function x
+    for i in $argv
+        xdg-open $i 2> /dev/null
+    end
+end
+
+alias "l"="ls -lh"
+alias vi=vim
+alias df="df -h"
+alias diff="colordiff -Naur"
+alias mkdir="mkdir --parents --verbose"
+alias make="make -j6"
+alias python=ipython
+
+# Set chromium as the browser for the help
+set -x BROWSER chromium
+
+
 function fish_prompt
+    printf '%s ' (date +%H:%M:%S)
     printf '%s%s%s%s%s' (set_color $fish_color_cwd) (prompt_pwd) (set_color normal) 
 
     # Prints mercurial current branch if we are in a repository.
     if test -e .git
         printf " %s" (git branch | grep "*" | cut --fields=2 --delimiter=" ") 
     end 
-
-    # Opens all parameters
-    function x
-        for i in $argv
-            xdg-open $i 2> /dev/null
-        end
-    end
-
-    alias "l"="ls -lh"
-    alias vi=vim
-    alias df="df -h"
-    alias diff="colordiff -Naur"
-    alias mkdir="mkdir --parents --verbose"
-    alias make="make -j6"
-    alias python=ipython
-
     echo ' >'
 end