소스 검색

initial fish

Jordan Dashel 3 년 전
부모
커밋
a1c6b4155f
2개의 변경된 파일23개의 추가작업 그리고 0개의 파일을 삭제
  1. 18 0
      shell/fish/config.fish
  2. 5 0
      shell/fish/functions/fish_prompt.fish

+ 18 - 0
shell/fish/config.fish

@@ -0,0 +1,18 @@
+set -gx EDITOR (type -p vim)
+set -gx GOPATH ~/bench/go
+#set -gx PATH $PATH:/usr/local/go/bin
+set -gx PATH $PATH:/home/jord/.local/bin
+
+alias gs="git status"
+alias gd="git diff"
+alias ga="git add"
+alias gc="git commit"
+alias gpo="git push origin"
+
+#startx at login
+if status is-login
+    if test -z "$DISPLAY" -a "$XDG_VTNR" = 1
+        exec startx -- -keeptty
+    end
+end
+

+ 5 - 0
shell/fish/functions/fish_prompt.fish

@@ -0,0 +1,5 @@
+function fish_prompt --description 'Write out the prompt'
+    echo (set_color '#00ad9c')(whoami)(set_color normal) '@' (set_color '#d5911a')(pwd)(set_color normal) '♫ '
+    echo -e ' '
+    #echo '♫ ✰ ❀ ➫ '
+end