qubes-apply

python script to automate qubes saltstack

git clone https://9o.is/git/qubes-apply.git

main.fish

(848B)


      1 set fish_greeting ""
      2 
      3 if not contains '/home/user/.local/bin' $PATH
      4     set -gx --prepend PATH '/home/user/.local/bin'
      5 end
      6 
      7 alias ll 'ls -alhGL --group-directories-first --time-style "+%Y-%m-%d"'
      8 alias tree 'tree -a -L 4 --filesfirst --gitignore'
      9 
     10 abbr df 'df -h'
     11 abbr du 'du -h'
     12 
     13 set -gx LESS '-R -M -S --tabs 4 -j.5 --incsearch --mouse --wheel-lines 4'
     14 
     15 bind \ce 'fish_commandline_prepend $EDITOR'
     16 bind -M insert \ce 'fish_commandline_prepend $EDITOR'
     17 
     18 function fish_prompt -d "Write out the prompt"
     19     set -l exit_code $status
     20     set -l exit_code_str ""
     21 
     22     if test $exit_code -ne 0
     23         set exit_code_str "[$exit_code] "
     24     end
     25 
     26     printf '%s%s%s%s> ' (set_color red)$exit_code_str \
     27         (set_color $fish_color_cwd) (prompt_pwd) (set_color normal)
     28 end
     29 
     30 function fish_user_key_bindings
     31     fish_vi_key_bindings --no-erase insert
     32 end