config.fish_beforeRafactoring_LAST 22 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009
  1. # My fish config.
  2. # For ranger, htop and other console progs in Qtile
  3. set -e COLUMNS # -e = --erase
  4. set -e LINES
  5. set fish_prompt_pwd_dir_length 0 # disable shortening (~/O/Linux) entirely
  6. ### EXPORTs ###
  7. set HOME (echo /home/$USER)
  8. # set -U fish_user_paths $HOME/.local/bin $HOME/Programs/AppImageApplications $fish_user_paths
  9. # set PATH $PATH $HOME/.cargo/bin $HOME/.config/vifm/scripts $HOME/Programs/Android_SDK/platform-tools # PATH for exa in cargo and ...
  10. # set fish_greeting # Supresses fish's intro message
  11. # set fish_greeting 'Welcome to fish!'
  12. set EDITOR "vim"
  13. set VISUAL "gvim"
  14. set TERM "xterm-256color"
  15. set TERMINAL "alacritty"
  16. set BROWSER "firefox"
  17. set RANGER_LOAD_DEFAULT_RC FALSE # to avoid loading ranger's config twice
  18. set ANDROID_SDK $HOME"/Programs/Android_SDK"
  19. # EDITOR="vim" crontab -e # $EDITOR use Vim to edit crontab
  20. # select-editor (~/.selected-editor)
  21. set -x MANPAGER "sh -c 'col -bx | bat -l man -p'" # $MANPAGER use batcat to read mans
  22. set __GIT_PROMPT_DIR ~/.bash-git-prompt # Git autocomplition and prompt
  23. # source ~/.asdf/asdf.fish # For asdf manager
  24. ### SET EITHER DEFAULT EMACS MODE OR VI MODE ###
  25. function fish_user_key_bindings
  26. fish_default_key_bindings
  27. # fish_vi_key_bindings
  28. end
  29. ### END OF VI MODE ###
  30. ### AUTOCOMPLETE AND HIGHLIGHT COLORS ###
  31. # cyan from manjaro theme: #00CCBB #145C56 #16A085
  32. # set fish_color_normal '#16A085'
  33. # set fish_color_command '#16A085'
  34. # set fish_color_param '#16A085'
  35. set fish_color_normal brcyan
  36. set fish_color_autosuggestion '#7d7d7d'
  37. set fish_color_command brcyan
  38. set fish_color_error '#ff6c6b'
  39. set fish_color_param brcyan
  40. ### FUNCTIONS ###
  41. function fish_greeting -d "Greeting message on shell session start up"
  42. # Run neofetch
  43. neofetch
  44. end
  45. # Functions needed for !! and !$
  46. function __history_previous_command
  47. switch (commandline -t)
  48. case "!"
  49. commandline -t $history[1]; commandline -f repaint
  50. case "*"
  51. commandline -i !
  52. end
  53. end
  54. function __history_previous_command_arguments
  55. switch (commandline -t)
  56. case "!"
  57. commandline -t ""
  58. commandline -f history-token-search-backward
  59. case "*"
  60. commandline -i '$'
  61. end
  62. end
  63. # The bindings for !! and !$
  64. if [ $fish_key_bindings = fish_vi_key_bindings ];
  65. bind -Minsert ! __history_previous_command
  66. bind -Minsert '$' __history_previous_command_arguments
  67. else
  68. bind ! __history_previous_command
  69. bind '$' __history_previous_command_arguments
  70. end
  71. # Function for creating a backup file
  72. # ex: backup file.txt
  73. # result: copies file as file.txt.bak
  74. function backup --argument filename
  75. cp $filename $filename.bak
  76. end
  77. function fish_prompt
  78. # - green lines if the last return command is OK, red otherwise
  79. # - your user name, in red if root or yellow otherwise
  80. # - your hostname, in cyan if ssh or blue otherwise
  81. # - the current path (with prompt_pwd)
  82. # - date +%X
  83. # - the current virtual environment, if any
  84. # - the current git status, if any, with __fish_git_prompt
  85. # - the current battery state, if any, and if your power cable is unplugged, and if you have "acpi"
  86. # - current background jobs, if any
  87. # It goes from:
  88. # ┬─[nim@Hattori:~]─[11:39:00]
  89. # ╰─>$ echo here
  90. # To:
  91. # ┬─[nim@Hattori:~/w/dashboard]─[11:37:14]─[V:django20]─[G:master↑1|●1✚1…1]─[B:85%, 05:41:42 remaining]
  92. # │ 2 15054 0% arrêtée sleep 100000
  93. # │ 1 15048 0% arrêtée sleep 100000
  94. # ╰─>$ echo there
  95. # Colors
  96. # Reset
  97. set ResetColor (set_color normal) # Text Reset
  98. # Regular Colors
  99. set Blue (set_color blue) # Blue
  100. set Green (set_color green) # Green
  101. set Yellow (set_color yellow) # Yellow
  102. set Cyan (set_color cyan)
  103. set Red (set_color red) # Red
  104. set White (set_color white)
  105. # Bold
  106. set BBlue (set_color -o blue)
  107. set BGreen (set_color -o green) # Green
  108. set BYellow (set_color -o yellow) # Yellow
  109. set BCyan (set_color -o brcyan)
  110. set BRed (set_color -o red)
  111. set BWhite (set_color -o white)
  112. set BMagenta (set_color -o magenta) # Purple
  113. set BBlack (set_color -o black) # Black
  114. # # Default values for the appearance of the prompt. Configure at will.
  115. set GIT_PROMPT_PREFIX "("
  116. set GIT_PROMPT_SUFFIX ")"
  117. set GIT_PROMPT_SEPARATOR "|"
  118. set GIT_PROMPT_BRANCH "$BMagenta"
  119. set GIT_PROMPT_STAGED "$Red● "
  120. set GIT_PROMPT_CONFLICTS "$Red✖ "
  121. set GIT_PROMPT_CHANGED "$Blue✚ "
  122. set GIT_PROMPT_REMOTE " "
  123. set GIT_PROMPT_UNTRACKED "…"
  124. set GIT_PROMPT_STASHED "⚑ "
  125. set GIT_PROMPT_CLEAN "$BGreen✔"
  126. set -q __fish_git_prompt_showupstream
  127. or set -g __fish_git_prompt_showupstream auto
  128. function _nim_prompt_wrapper
  129. set retc $argv[1]
  130. set field_name $argv[2]
  131. set field_value $argv[3]
  132. set_color normal
  133. set_color $retc
  134. echo -n '─'
  135. set_color -o green
  136. echo -n '['
  137. set_color normal
  138. test -n $field_name
  139. and echo -n $field_name:
  140. set_color $retc
  141. echo -n $field_value
  142. set_color -o green
  143. echo -n ']'
  144. end
  145. and set retc green
  146. or set retc red
  147. set_color $retc
  148. echo
  149. echo -n '┬─'
  150. set_color -o green
  151. echo -n [
  152. if test "$USER" = root -o "$USER" = toor
  153. set_color -o red
  154. else
  155. set_color -o yellow
  156. end
  157. echo -n $USER
  158. set_color -o white
  159. echo -n @
  160. if [ -z "$SSH_CLIENT" ]
  161. set_color -o blue
  162. else
  163. set_color -o cyan
  164. end
  165. echo -n (prompt_hostname):
  166. set_color -o white
  167. echo -n (prompt_pwd)
  168. set_color -o green
  169. echo -n ']'
  170. # Date
  171. # _nim_prompt_wrapper $retc '' (date "+%I:%M %p")
  172. _nim_prompt_wrapper $retc '' (date "+%H:%M")
  173. # Virtual Environment
  174. # set -q VIRTUAL_ENV
  175. # and _nim_prompt_wrapper $retc V (basename "$VIRTUAL_ENV")
  176. # git
  177. set -e __CURRENT_GIT_STATUS
  178. set gitstatus "$__GIT_PROMPT_DIR/gitstatus.py"
  179. # set _GIT_STATUS (python $gitstatus)
  180. set _GIT_STATUS (python3 $gitstatus)
  181. set __CURRENT_GIT_STATUS $_GIT_STATUS
  182. set __CURRENT_GIT_STATUS_PARAM_COUNT (count $__CURRENT_GIT_STATUS)
  183. if not test "0" -eq $__CURRENT_GIT_STATUS_PARAM_COUNT
  184. set GIT_BRANCH $__CURRENT_GIT_STATUS[1]
  185. set GIT_REMOTE "$__CURRENT_GIT_STATUS[2]"
  186. if contains "." "$GIT_REMOTE"
  187. set -e GIT_REMOTE
  188. end
  189. set GIT_STAGED $__CURRENT_GIT_STATUS[3]
  190. set GIT_CONFLICTS $__CURRENT_GIT_STATUS[4]
  191. set GIT_CHANGED $__CURRENT_GIT_STATUS[5]
  192. set GIT_UNTRACKED $__CURRENT_GIT_STATUS[6]
  193. set GIT_STASHED $__CURRENT_GIT_STATUS[7]
  194. set GIT_CLEAN $__CURRENT_GIT_STATUS[8]
  195. end
  196. if test -n "$__CURRENT_GIT_STATUS"
  197. set STATUS "$GIT_PROMPT_BRANCH$GIT_BRANCH$ResetColor"
  198. if set -q GIT_REMOTE
  199. set STATUS "$STATUS$GIT_PROMPT_REMOTE$GIT_REMOTE$ResetColor"
  200. end
  201. set STATUS "$STATUS$GIT_PROMPT_SEPARATOR"
  202. if [ $GIT_STAGED != "0" ]
  203. set STATUS "$STATUS$GIT_PROMPT_STAGED$GIT_STAGED$ResetColor"
  204. end
  205. if [ $GIT_CONFLICTS != "0" ]
  206. set STATUS "$STATUS$GIT_PROMPT_CONFLICTS$GIT_CONFLICTS$ResetColor"
  207. end
  208. if [ $GIT_CHANGED != "0" ]
  209. set STATUS "$STATUS$GIT_PROMPT_CHANGED$GIT_CHANGED$ResetColor"
  210. end
  211. if [ "$GIT_UNTRACKED" != "0" ]
  212. set STATUS "$STATUS$GIT_PROMPT_UNTRACKED$GIT_UNTRACKED$ResetColor"
  213. end
  214. if [ "$GIT_STASHED" != "0" ]
  215. set STATUS "$STATUS$GIT_PROMPT_STASHED$GIT_STASHED$ResetColor"
  216. end
  217. if [ "$GIT_CLEAN" = "1" ]
  218. set STATUS "$STATUS$GIT_PROMPT_CLEAN"
  219. end
  220. set STATUS "$STATUS$ResetColor"
  221. set prompt_git "$STATUS"
  222. else
  223. set prompt_git ""
  224. end
  225. # set prompt_git (__fish_git_prompt | string trim -c ' ()')
  226. test -n "$prompt_git"
  227. and _nim_prompt_wrapper $retc G $prompt_git
  228. # Battery status
  229. type -q acpi
  230. and test (acpi -a 2> /dev/null | string match -r off)
  231. and _nim_prompt_wrapper $retc B (acpi -b | cut -d' ' -f 4-)
  232. # New line
  233. echo
  234. # Background jobs
  235. set_color normal
  236. for job in (jobs)
  237. set_color $retc
  238. echo -n '│ '
  239. set_color brown
  240. echo $job
  241. end
  242. set_color normal
  243. set_color $retc
  244. echo -n '╰─>'
  245. if test "$USER" = root -o "$USER" = toor
  246. set_color -o red
  247. echo -n '# '
  248. else
  249. set_color -o yellow
  250. echo -n '$ '
  251. end
  252. set_color normal
  253. end
  254. # name: bash-git-prompt
  255. # author: Mariusz Smykuła <mariuszs@gmail.com>
  256. # function fish_prompt
  257. # if not set -q __GIT_PROMPT_DIR
  258. # set __GIT_PROMPT_DIR ~/.bash-git-prompt
  259. # end
  260. #
  261. # # Colors
  262. # # Reset
  263. # set ResetColor (set_color normal) # Text Reset
  264. #
  265. # # Regular Colors
  266. # set Blue (set_color blue) # Blue
  267. # set Green (set_color green) # Green
  268. # set Yellow (set_color yellow) # Yellow
  269. # set Cyan (set_color cyan)
  270. # set Red (set_color red) # Red
  271. # set White (set_color white)
  272. #
  273. # # Bold
  274. # set BBlue (set_color -o blue)
  275. # set BGreen (set_color -o green) # Green
  276. # set BYellow (set_color -o yellow) # Yellow
  277. # set BCyan (set_color -o brcyan)
  278. # set BRed (set_color -o red)
  279. # set BWhite (set_color -o white)
  280. # set BMagenta (set_color -o magenta) # Purple
  281. # set BBlack (set_color -o black) # Black
  282. #
  283. # # Default values for the appearance of the prompt. Configure at will.
  284. # set GIT_PROMPT_PREFIX "("
  285. # set GIT_PROMPT_SUFFIX ")"
  286. # set GIT_PROMPT_SEPARATOR "|"
  287. # set GIT_PROMPT_BRANCH "$BMagenta"
  288. # set GIT_PROMPT_STAGED "$Red● "
  289. # set GIT_PROMPT_CONFLICTS "$Red✖ "
  290. # set GIT_PROMPT_CHANGED "$Blue✚ "
  291. # set GIT_PROMPT_REMOTE " "
  292. # set GIT_PROMPT_UNTRACKED "…"
  293. # set GIT_PROMPT_STASHED "⚑ "
  294. # set GIT_PROMPT_CLEAN "$BGreen✔"
  295. #
  296. # # Various variables you might want for your PS1 prompt instead
  297. # # set Time (date +%R)
  298. # set Time (date "+%I:%M %p")
  299. # set PathShort (pwd|sed "s=$HOME=~=")
  300. # # set Name (whoami)
  301. # set HostName (hostname)
  302. # # set -g __fish_prompt_char \u276f\u276f
  303. # # set -g __fish_prompt_char »»»
  304. # # set -g __fish_prompt_char \u276d
  305. # set -g __fish_prompt_char ↪
  306. #
  307. # # set PROMPT_START "$Yellow$PathShort$ResetColor"
  308. # # set PROMPT_END " \n$White$Time$ResetColor \$ "
  309. # set PROMPT_START "\n$BYellow$USER$BWhite@$BGreen$HostName:$Blue$PathShort$ResetColor"
  310. # # set PROMPT_END "\n$BWhite$Time$BYellow > "
  311. # # set PROMPT_END "\n$BWhite$Time$BYellow $__fish_prompt_char "
  312. # # set PROMPT_END "\n$BYellow $__fish_prompt_char "
  313. # set PROMPT_END "\n$BYellow > "
  314. #
  315. # set -e __CURRENT_GIT_STATUS
  316. # set gitstatus "$__GIT_PROMPT_DIR/gitstatus.py"
  317. #
  318. # set _GIT_STATUS (python $gitstatus)
  319. # set __CURRENT_GIT_STATUS $_GIT_STATUS
  320. #
  321. # set __CURRENT_GIT_STATUS_PARAM_COUNT (count $__CURRENT_GIT_STATUS)
  322. #
  323. # if not test "0" -eq $__CURRENT_GIT_STATUS_PARAM_COUNT
  324. # set GIT_BRANCH $__CURRENT_GIT_STATUS[1]
  325. # set GIT_REMOTE "$__CURRENT_GIT_STATUS[2]"
  326. # if contains "." "$GIT_REMOTE"
  327. # set -e GIT_REMOTE
  328. # end
  329. # set GIT_STAGED $__CURRENT_GIT_STATUS[3]
  330. # set GIT_CONFLICTS $__CURRENT_GIT_STATUS[4]
  331. # set GIT_CHANGED $__CURRENT_GIT_STATUS[5]
  332. # set GIT_UNTRACKED $__CURRENT_GIT_STATUS[6]
  333. # set GIT_STASHED $__CURRENT_GIT_STATUS[7]
  334. # set GIT_CLEAN $__CURRENT_GIT_STATUS[8]
  335. # end
  336. #
  337. # if test -n "$__CURRENT_GIT_STATUS"
  338. # set STATUS " $GIT_PROMPT_PREFIX$GIT_PROMPT_BRANCH$GIT_BRANCH$ResetColor"
  339. #
  340. # if set -q GIT_REMOTE
  341. # set STATUS "$STATUS$GIT_PROMPT_REMOTE$GIT_REMOTE$ResetColor"
  342. # end
  343. #
  344. # set STATUS "$STATUS$GIT_PROMPT_SEPARATOR"
  345. #
  346. # if [ $GIT_STAGED != "0" ]
  347. # set STATUS "$STATUS$GIT_PROMPT_STAGED$GIT_STAGED$ResetColor"
  348. # end
  349. #
  350. # if [ $GIT_CONFLICTS != "0" ]
  351. # set STATUS "$STATUS$GIT_PROMPT_CONFLICTS$GIT_CONFLICTS$ResetColor"
  352. # end
  353. #
  354. # if [ $GIT_CHANGED != "0" ]
  355. # set STATUS "$STATUS$GIT_PROMPT_CHANGED$GIT_CHANGED$ResetColor"
  356. # end
  357. #
  358. # if [ "$GIT_UNTRACKED" != "0" ]
  359. # set STATUS "$STATUS$GIT_PROMPT_UNTRACKED$GIT_UNTRACKED$ResetColor"
  360. # end
  361. #
  362. # if [ "$GIT_STASHED" != "0" ]
  363. # set STATUS "$STATUS$GIT_PROMPT_STASHED$GIT_STASHED$ResetColor"
  364. # end
  365. #
  366. # if [ "$GIT_CLEAN" = "1" ]
  367. # set STATUS "$STATUS$GIT_PROMPT_CLEAN"
  368. # end
  369. #
  370. # set STATUS "$STATUS$ResetColor$GIT_PROMPT_SUFFIX"
  371. #
  372. # set PS1 "$PROMPT_START$STATUS$PROMPT_END"
  373. # else
  374. # set PS1 "$PROMPT_START$PROMPT_END"
  375. # end
  376. #
  377. # echo -e $PS1
  378. # end
  379. #
  380. # function fish_right_prompt -d "Write out the right prompt"
  381. # # set_color -o yellow
  382. # # date "+%I:%M %p "
  383. # set_color normal
  384. # date "+%A %d %B %Y | %I:%M %p "
  385. # # date
  386. # end
  387. ### END OF FUNCTIONS ###
  388. ### ALIASES ###
  389. # alias ls='ls --color=auto'
  390. # alias ll='ls -l'
  391. # alias ll='ls -lh'
  392. # alias la='ls -la'
  393. # alias la='ls -lah'
  394. # alias lf='ls -lFh'
  395. alias lse='exa -g --color=always --group-directories-first'
  396. alias lle='lse -l'
  397. alias ls='lsd --group-dirs=first'
  398. alias ll='lsd --blocks=permission,links,user,group,size,date,name --group-dirs=first --date="+%d %b %H:%M"'
  399. alias la='ll -a'
  400. # alias bat='bat --theme gruvbox-dark' # theme moved to the .config/bat/config
  401. alias grep='grep --color=auto'
  402. alias fgrep='fgrep --color=auto'
  403. alias egrep='egrep --color=auto'
  404. alias ifconfig=/sbin/ifconfig
  405. # confirm before overwriting something
  406. alias cp="cp -i"
  407. alias mv='mv -i'
  408. alias rm='rm -i'
  409. # switch between shells
  410. alias tobash="sudo chsh $USER -s /usr/bin/env bash && echo 'Now log out.'"
  411. alias tozsh="sudo chsh $USER -s /usr/bin/env zsh && echo 'Now log out.'"
  412. alias tofish="sudo chsh $USER -s /usr/bin/env fish && echo 'Now log out.'"
  413. # navigation
  414. alias ..='cd ..'
  415. alias ...='cd ../..'
  416. alias .3='cd ../../..'
  417. alias .4='cd ../../../..'
  418. alias .5='cd ../../../../..'
  419. ## get top process eating memory
  420. alias psmem='ps auxf | sort -nr -k 4'
  421. alias psmem10='ps auxf | sort -nr -k 4 | head -10'
  422. ## get top process eating cpu ##
  423. alias pscpu='ps auxf | sort -nr -k 3'
  424. alias pscpu10='ps auxf | sort -nr -k 3 | head -10'
  425. ## git
  426. alias config='/usr/bin/git --git-dir=$HOME/.dotfiles.git --work-tree=$HOME'
  427. ### END OF ALIASES ###
  428. ### EXTRA fish_prompt.fish from theme-cbjohnson ###
  429. # function fish_prompt
  430. # # Cache exit status
  431. # set -l last_status $status
  432. #
  433. # # Just calculate these once, to save a few cycles when displaying the prompt
  434. # if not set -q __fish_prompt_hostname
  435. # set -g __fish_prompt_hostname (hostname|cut -d . -f 1)
  436. # end
  437. # if not set -q __fish_prompt_char
  438. # switch (id -u)
  439. # case 0
  440. # set -g __fish_prompt_char \u276f\u276f
  441. # case '*'
  442. # set -g __fish_prompt_char »
  443. # end
  444. # end
  445. #
  446. # # Setup colors
  447. # set -l normal (set_color normal)
  448. # set -l cyan (set_color cyan)
  449. # set -l yellow (set_color yellow)
  450. # set -l bpurple (set_color -o purple)
  451. # set -l bred (set_color -o red)
  452. # set -l bcyan (set_color -o cyan)
  453. # set -l bwhite (set_color -o white)
  454. #
  455. # # Configure __fish_git_prompt
  456. # set -g __fish_git_prompt_show_informative_status true
  457. # set -g __fish_git_prompt_showcolorhints true
  458. #
  459. # # Color prompt char red for non-zero exit status
  460. # set -l pcolor $bpurple
  461. # if [ $last_status -ne 0 ]
  462. # set pcolor $bred
  463. # end
  464. #
  465. # # Top
  466. # echo -n $cyan$USER$normal at $yellow$__fish_prompt_hostname$normal in $bred(prompt_pwd)$normal
  467. # __fish_git_prompt
  468. #
  469. # echo
  470. #
  471. # # Bottom
  472. # echo -n $pcolor$__fish_prompt_char $normal
  473. # end
  474. # opam configuration
  475. source /home/alexander/.opam/opam-init/init.fish > /dev/null 2> /dev/null; or true
  476. # Icons for lf file manager
  477. set LF_ICONS "\
  478. fi=:\
  479. di=:\
  480. ln=:\
  481. pi=|:\
  482. so=ﯲ:\
  483. db=:\
  484. cd=c:\
  485. or=:\
  486. su=:\
  487. sg=:\
  488. tw=:\
  489. ow=w:\
  490. st=:\
  491. ex=:\
  492. *.7z=:\
  493. *.a=:\
  494. *.aac=:\
  495. *.ace=:\
  496. *.ai=:\
  497. *.alz=:\
  498. *.apk=:\
  499. *.arc=:\
  500. *.arj=:\
  501. *.asf=:\
  502. *.asm=:\
  503. *.asp=:\
  504. *.au=:\
  505. *.aup=:\
  506. *.avi=:\
  507. *.avi=:\
  508. *.awk=:\
  509. *.bash=:\
  510. *.bat=:\
  511. *.bmp=:\
  512. *.bz2=:\
  513. *.bz=:\
  514. *.c++=:\
  515. *.c=:\
  516. *.cab=:\
  517. *.cbr=:\
  518. *.cbz=:\
  519. *.cc=:\
  520. *.cgm=:\
  521. *.class=:\
  522. *.clj=:\
  523. *.cljc=:\
  524. *.cljs=:\
  525. *.cmake=:\
  526. *.cmd=:\
  527. *.coffee=:\
  528. *.conf=:\
  529. *.cp=:\
  530. *.cpio=:\
  531. *.cpp=:\
  532. *.cs=:\
  533. *.css=:\
  534. *.cue=:\
  535. *.csh=:\
  536. *.cvs=:\
  537. *.cxx=:\
  538. *.d=:\
  539. *.dart=:\
  540. *.db=:\
  541. *.deb=:\
  542. *.diff=:\
  543. *.dl=:\
  544. *.dll=:\
  545. *.doc=:\
  546. *.docx=:\
  547. *.dump=:\
  548. *.dwm=:\
  549. *.dz=:\
  550. *.ear=:\
  551. *.edn=:\
  552. *.eex=:\
  553. *.efi=:\
  554. *.ejs=:\
  555. *.elf=:\
  556. *.elm=:\
  557. *.emf=:\
  558. *.epub=:\
  559. *.erl=:\
  560. *.esd=:\
  561. *.ex=:\
  562. *.exe=:\
  563. *.exs=:\
  564. *.f#=:\
  565. *.fifo=|:\
  566. *.fish=:\
  567. *.flac=:\
  568. *.flc=:\
  569. *.fli=:\
  570. *.flv=:\
  571. *.flv=:\
  572. *.fs=:\
  573. *.fsi=:\
  574. *.fsscript=:\
  575. *.fsx=:\
  576. *.gem=:\
  577. *.gif=:\
  578. *.git=:\
  579. *.gl=:\
  580. *.go=:\
  581. *.gz=:\
  582. *.gzip=:\
  583. *.h=:\
  584. *.hbs=:\
  585. *.hh=:\
  586. *.hpp=:\
  587. *.hrl=:\
  588. *.hs=:\
  589. *.htaccess=:\
  590. *.htm=:\
  591. *.html=:\
  592. *.htpasswd=:\
  593. *.ico=:\
  594. *.img=:\
  595. *.ini=:\
  596. *.iso=:\
  597. *.jar=:\
  598. *.java=:\
  599. *.jl=:\
  600. *.jpeg=:\
  601. *.jpg=:\
  602. *.js=:\
  603. *.json=:\
  604. *.jsx=:\
  605. *.key=:\
  606. *.ksh=:\
  607. *.less=:\
  608. *.lha=:\
  609. *.lhs=:\
  610. *.log=:\
  611. *.lrz=:\
  612. *.lua=:\
  613. *.lz4=:\
  614. *.lz=:\
  615. *.lzh=:\
  616. *.lzma=:\
  617. *.lzo=:\
  618. *.m2v=:\
  619. *.m4a=:\
  620. *.m4v=:\
  621. *.markdown=:\
  622. *.md=:\
  623. *.mid=:\
  624. *.midi=:\
  625. *.mjpeg=:\
  626. *.mjpg=:\
  627. *.mka=:\
  628. *.mkv=:\
  629. *.ml=λ:\
  630. *.mli=λ:\
  631. *.mng=:\
  632. *.mov=:\
  633. *.mp3=:\
  634. *.mp4=:\
  635. *.mp4v=:\
  636. *.mpc=:\
  637. *.mpeg=:\
  638. *.mpg=:\
  639. *.msi=:\
  640. *.mustache=:\
  641. *.nix=:\
  642. *.nuv=:\
  643. *.o=:\
  644. *.oga=:\
  645. *.ogg=:\
  646. *.ogm=:\
  647. *.ogv=:\
  648. *.ogx=:\
  649. *.opus=:\
  650. *.pbm=:\
  651. *.pcx=:\
  652. *.pdf=:\
  653. *.pgm=:\
  654. *.php=:\
  655. *.pl=:\
  656. *.pm=:\
  657. *.png=:\
  658. *.ppk=:\
  659. *.ppm=:\
  660. *.ppt=:\
  661. *.pptx=:\
  662. *.pro=:\
  663. *.ps1=:\
  664. *.psb=:\
  665. *.psd=:\
  666. *.pub=:\
  667. *.py=:\
  668. *.pyc=:\
  669. *.pyd=:\
  670. *.pyo=:\
  671. *.qt=:\
  672. *.ra=:\
  673. *.rar=:\
  674. *.rb=:\
  675. *.rc=:\
  676. *.rlib=:\
  677. *.rm=:\
  678. *.rmvb=:\
  679. *.rom=:\
  680. *.rpm=:\
  681. *.rs=:\
  682. *.rss=:\
  683. *.rtf=:\
  684. *.rz=:\
  685. *.s=:\
  686. *.sar=:\
  687. *.scala=:\
  688. *.scss=:\
  689. *.sh=:\
  690. *.slim=:\
  691. *.sln=:\
  692. *.so=:\
  693. *.spx=:\
  694. *.sql=:\
  695. *.styl=:\
  696. *.suo=:\
  697. *.svg=:\
  698. *.svgz=:\
  699. *.swm=:\
  700. *.t7z=:\
  701. *.t=:\
  702. *.tar=:\
  703. *.taz=:\
  704. *.tbz2=:\
  705. *.tbz=:\
  706. *.tga=:\
  707. *.tgz=:\
  708. *.tif=:\
  709. *.tiff=:\
  710. *.tlz=:\
  711. *.ts=:\
  712. *.twig=:\
  713. *.txz=:\
  714. *.tz=:\
  715. *.tzo=:\
  716. *.tzst=:\
  717. *.vim=:\
  718. *.vimrc=:\
  719. *.vob=:\
  720. *.war=:\
  721. *.wav=:\
  722. *.wav=:\
  723. *.webm=:\
  724. *.wim=:\
  725. *.wmv=:\
  726. *.xbm=:\
  727. *.xbps=:\
  728. *.xcf=:\
  729. *.xhtml=:\
  730. *.xls=:\
  731. *.xlsx=:\
  732. *.xml=:\
  733. *.xpm=:\
  734. *.xspf=:\
  735. *.xul=:\
  736. *.xwd=:\
  737. *.xz=:\
  738. *.yaml=:\
  739. *.yml=:\
  740. *.yuv=:\
  741. *.z=:\
  742. *.zip=:\
  743. *.zoo=:\
  744. *.zsh=:\
  745. *.zst=:\
  746. *.src=:\
  747. *.ebuild=:\
  748. "
  749. # set LF_ICONS "\
  750. # tw=:\
  751. # st=:\
  752. # ow=:\
  753. # dt=:\
  754. # di=:\
  755. # fi=:\
  756. # ln=:\
  757. # or=:\
  758. # *.7z=:\
  759. # *.a=:\
  760. # *.ai=:\
  761. # *.apk=:\
  762. # *.asm=:\
  763. # *.asp=:\
  764. # *.aup=:\
  765. # *.avi=:\
  766. # *.awk=:\
  767. # *.bash=:\
  768. # *.bat=:\
  769. # *.bmp=:\
  770. # *.bz2=:\
  771. # *.c=:\
  772. # *.c++=:\
  773. # *.cab=:\
  774. # *.cbr=:\
  775. # *.cbz=:\
  776. # *.cc=:\
  777. # *.class=:\
  778. # *.clj=:\
  779. # *.cljc=:\
  780. # *.cljs=:\
  781. # *.cmake=:\
  782. # *.coffee=:\
  783. # *.conf=:\
  784. # *.cp=:\
  785. # *.cpio=:\
  786. # *.cpp=:\
  787. # *.cs=:\
  788. # *.csh=:\
  789. # *.css=:\
  790. # *.cue=:\
  791. # *.cvs=:\
  792. # *.cxx=:\
  793. # *.d=:\
  794. # *.dart=:\
  795. # *.db=:\
  796. # *.deb=:\
  797. # *.diff=:\
  798. # *.dll=:\
  799. # *.doc=:\
  800. # *.docx=:\
  801. # *.dump=:\
  802. # *.edn=:\
  803. # *.eex=:\
  804. # *.efi=:\
  805. # *.ejs=:\
  806. # *.elf=:\
  807. # *.elm=:\
  808. # *.epub=:\
  809. # *.erl=:\
  810. # *.ex=:\
  811. # *.exe=:\
  812. # *.exs=:\
  813. # *.f#=:\
  814. # *.fifo=|
  815. # *.fish=:\
  816. # *.flac=:\
  817. # *.flv=:\
  818. # *.fs=:\
  819. # *.fsi=:\
  820. # *.fsscript=:\
  821. # *.fsx=:\
  822. # *.gem=:\
  823. # *.gemspec=:\
  824. # *.gif=:\
  825. # .git=:\
  826. # *.go=:\
  827. # *.gz=:\
  828. # *.gzip=:\
  829. # *.h=:\
  830. # *.haml=:\
  831. # *.hbs=:\
  832. # *.hh=:\
  833. # *.hpp=:\
  834. # *.hrl=:\
  835. # *.hs=:\
  836. # *.htaccess=:\
  837. # *.htm=:\
  838. # *.html=:\
  839. # *.htpasswd=:\
  840. # *.hxx=:\
  841. # *.ico=:\
  842. # *.img=:\
  843. # *.ini=:\
  844. # *.iso=:\
  845. # *.jar=:\
  846. # *.java=:\
  847. # *.jl=:\
  848. # *.jpeg=:\
  849. # *.jpg=:\
  850. # *.js=:\
  851. # *.json=:\
  852. # *.jsx=:\
  853. # *.key=:\
  854. # *.ksh=:\
  855. # *.leex=:\
  856. # *.less=:\
  857. # *.lha=:\
  858. # *.lhs=:\
  859. # *.log=:\
  860. # *.lua=:\
  861. # *.lzh=:\
  862. # *.lzma=:\
  863. # *.m4a=:\
  864. # *.m4v=:\
  865. # *.markdown=:\
  866. # *.md=:\
  867. # *.mdx=:\
  868. # *.mjs=:\
  869. # *.mkv=:\
  870. # *.ml=λ:\
  871. # *.mli=λ:\
  872. # *.mov=:\
  873. # *.mp3=:\
  874. # *.mp4=:\
  875. # *.mpeg=:\
  876. # *.mpg=:\
  877. # *.msi=:\
  878. # *.mustache=:\
  879. # *.nix=:\
  880. # *.o=:\
  881. # *.ogg=:\
  882. # *.pdf=:\
  883. # *.php=:\
  884. # *.pl=:\
  885. # *.pm=:\
  886. # *.png=:\
  887. # *.pp=:\
  888. # *.ppt=:\
  889. # *.pptx=:\
  890. # *.ps1=:\
  891. # *.psb=:\
  892. # *.psd=:\
  893. # *.pub=:\
  894. # *.py=:\
  895. # *.pyc=:\
  896. # *.pyd=:\
  897. # *.pyo=:\
  898. # *.r=ﳒ:\
  899. # *.rake=:\
  900. # *.rar=:\
  901. # *.rb=:\
  902. # *.rc=:\
  903. # *.rlib=:\
  904. # *.rmd=:\
  905. # *.rom=:\
  906. # *.rpm=:\
  907. # *.rproj=鉶:\
  908. # *.rs=:\
  909. # *.rss=:\
  910. # *.rtf=:\
  911. # *.s=:\
  912. # *.sass=:\
  913. # *.scala=:\
  914. # *.scss=:\
  915. # *.sh=:\
  916. # *.slim=:\
  917. # *.sln=:\
  918. # *.so=:\
  919. # *.sql=:\
  920. # *.styl=:\
  921. # *.suo=:\
  922. # *.swift=:\
  923. # *.t=:\
  924. # *.tar=:\
  925. # *.tex=ﭨ:\
  926. # *.tgz=:\
  927. # *.toml=:\
  928. # *.ts=:\
  929. # *.tsx=:\
  930. # *.twig=:\
  931. # *.vim=:\
  932. # *.vimrc=:\
  933. # *.vue=﵂:\
  934. # *.wav=:\
  935. # *.webm=:\
  936. # *.webmanifest=:\
  937. # *.webp=:\
  938. # *.xbps=:\
  939. # *.xcplayground=:\
  940. # *.xhtml=:\
  941. # *.xls=:\
  942. # *.xlsx=:\
  943. # *.xml=:\
  944. # *.xul=:\
  945. # *.xz=:\
  946. # *.yaml=:\
  947. # *.yml=:\
  948. # *.zip=:\
  949. # *.zsh=:\
  950. # "