Browse Source

Update for arch

remotes/remote_mirror_0048a893dc9c9faa373a1b34fba08204/arch
Andrew Zah 1 year ago
parent
commit
d7529dc94e
Signed by: Andrew Zah <zah@andrewzah.com> GPG Key ID: 0AE942445EB70FAA
3 changed files with 26 additions and 10 deletions
  1. 13
    0
      .ctags
  2. 11
    8
      .zshrc
  3. 2
    2
      zsh/functions.zsh

+ 13
- 0
.ctags View File

@@ -20,3 +20,16 @@
20 20
 --regex-clojure=/\([ \t]*defstruct[ \t]+([-[:alnum:]*+!_:\/.?]+)/\1/s,struct/
21 21
 --regex-clojure=/\([ \t]*intern[ \t]+([-[:alnum:]*+!_:\/.?]+)/\1/v,intern/
22 22
 --regex-clojure=/\([ \t]*ns[ \t]+([-[:alnum:]*+!_:\/.?]+)/\1/n,namespace/
23
+
24
+--langdef=Rust
25
+--langmap=Rust:.rs
26
+--regex-Rust=/^[ \t]*(#\[[^\]]\][ \t]*)*(pub[ \t]+)?(extern[ \t]+)?("[^"]+"[ \t]+)?(unsafe[ \t]+)?fn[ \t]+([a-zA-Z0-9_]+)/\6/f,functions,function definitions/
27
+--regex-Rust=/^[ \t]*(pub[ \t]+)?type[ \t]+([a-zA-Z0-9_]+)/\2/T,types,type definitions/
28
+--regex-Rust=/^[ \t]*(pub[ \t]+)?enum[ \t]+([a-zA-Z0-9_]+)/\2/g,enum,enumeration names/
29
+--regex-Rust=/^[ \t]*(pub[ \t]+)?struct[ \t]+([a-zA-Z0-9_]+)/\2/s,structure names/
30
+--regex-Rust=/^[ \t]*(pub[ \t]+)?mod[ \t]+([a-zA-Z0-9_]+)/\2/m,modules,module names/
31
+--regex-Rust=/^[ \t]*(pub[ \t]+)?(static|const)[ \t]+(mut[ \t]+)?([a-zA-Z0-9_]+)/\4/c,consts,static constants/
32
+--regex-Rust=/^[ \t]*(pub[ \t]+)?(unsafe[ \t]+)?trait[ \t]+([a-zA-Z0-9_]+)/\3/t,traits,traits/
33
+--regex-Rust=/^[ \t]*(pub[ \t]+)?(unsafe[ \t]+)?impl([ \t\n]*<[^>]*>)?[ \t]+(([a-zA-Z0-9_:]+)[ \t]*(<[^>]*>)?[ \t]+(for)[ \t]+)?([a-zA-Z0-9_]+)/\5 \7 \8/i,impls,trait implementations/
34
+--regex-Rust=/^[ \t]*macro_rules![ \t]+([a-zA-Z0-9_]+)/\1/d,macros,macro definitions/
35
+

+ 11
- 8
.zshrc View File

@@ -1,18 +1,21 @@
1
-source ~/.zsh/zsh-path.zsh
1
+export ZSH=/home/andrei/.oh-my-zsh
2
+
3
+source ~/.zsh/path.zsh
2 4
 source ~/.zsh/colors.zsh
3 5
 source ~/.zsh/setopt.zsh
4 6
 source ~/.zsh/exports.zsh
5
-source ~/.zsh/aliases.zsh
7
+#source ~/.zsh/aliases.zsh
6 8
 source ~/.zsh/functions.zsh
7 9
 source ~/.zsh/history.zsh
8 10
 source ~/.zsh/secret-exports.zsh
9
-~/.zsh/macosx.sh
11
+#~/.zsh/macosx.sh
10 12
 
11 13
 ZSH_THEME="theunraveler"
12 14
 
13
-plugins=(git lein brew ruby wd last-working-dir)
14
-
15
+plugins=(git lein ruby wd colored-man-pages last-working-dir)
15 16
 source $ZSH/oh-my-zsh.sh
16
-source $ZSH/plugins/zsh-up/up.plugin.zsh
17
-source $ZSH/plugins/zsh-colored-man-pages/colored-man-pages_mod.plugin.zsh
18
-source $ZSH/plugins/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh
17
+
18
+source $ZSH_CUSTOM/plugins/up/up.plugin.zsh
19
+source $ZSH_CUSTOM/plugins/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh
20
+
21
+[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh

+ 2
- 2
zsh/functions.zsh View File

@@ -70,8 +70,8 @@ function v() {
70 70
 
71 71
 
72 72
 # transfer.sh alias
73
-transfer() { if [ $# -eq 0 ]; then echo -e "No arguments specified. Usage:\necho transfer /tmp/test.md\ncat /tmp/test.md | transfer test.md"; return 1; fi 
74
-tmpfile=$( mktemp -t transferXXX ); if tty -s; then basefile=$(basename "$1" | sed -e 's/[^a-zA-Z0-9._-]/-/g'); curl --progress-bar --upload-file "$1" "https://transfer.sh/$basefile" >> $tmpfile; else curl --progress-bar --upload-file "-" "https://transfer.sh/$1" >> $tmpfile ; fi; cat $tmpfile; cat $tmpfile | pbcopy; rm -f $tmpfile; } 
73
+transfer() { if [ $# -eq 0 ]; then echo -e "No arguments specified. Usage:\necho transfer /tmp/test.md\ncat /tmp/test.md | transfer test.md"; return 1; fi
74
+tmpfile=$( mktemp -t transferXXX ); if tty -s; then basefile=$(basename "$1" | sed -e 's/[^a-zA-Z0-9._-]/-/g'); curl --progress-bar --upload-file "$1" "https://transfer.sh/$basefile" >> $tmpfile; else curl --progress-bar --upload-file "-" "https://transfer.sh/$1" >> $tmpfile ; fi; cat $tmpfile; rm -f $tmpfile; } 
75 75
 
76 76
 # `tre` is a shorthand for `tree` with hidden files and color enabled, ignoring
77 77
 # the `.git` directory, listing directories first. The output gets piped into

Loading…
Cancel
Save