-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzshrc
63 lines (49 loc) · 2.23 KB
/
zshrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=10000
SAVEHIST=10000
setopt incappendhistory autocd extendedglob nomatch
unsetopt beep
bindkey -v
# End of lines configured by zsh-newuser-install
# The following lines were added by compinstall
zstyle :compinstall filename '/home/matt/.zshrc'
autoload -Uz compinit
autoload -U history-search-end
compinit
# End of lines added by compinstall
# Use neovim as editor of choice
export EDITOR=nvim
PATH=$PATH:/home/matt/.gem/ruby/2.3.0/bin
PATH=$PATH:/home/matt/Documents/Omnet++/omnetpp-5.0/bin
export PATH
export XDG_CONFIG_HOME=/home/matt/.config
export STEAM_FRAME_FORCE_CLOSE=1
# Use vim style keybinds by default
bindkey -v
# Bind up/down to search history using current text
# Also add the history-search-end function
zle -N history-beginning-search-backward-end history-search-end
zle -N history-beginning-search-forward-end history-search-end
bindkey "^[[A" history-beginning-search-backward-end
bindkey "^[[B" history-beginning-search-forward-end
# Match files from both ends
setopt completeinword
# Match case insensitively
zstyle ':completion:*' matcher-list 'm:{a-zA-z}={A-Za-z}'
setopt auto_list
autoload -U colors && colors
PROMPT="%n@%M %~ > "
alias vim=nvim
alias XResUpdate="xrdb -merge ~/.Xresources"
alias ls="ls --color=always"
alias "zathuralast"='zathura /home/matt/Downloads/"$(ls -lt /home/matt/Downloads | head -n 2 | tail -c +62)"'
# alias tis100="~/GOG\ Games/TIS\ 100/start.sh"
alias Parkitect="~/Parkitect/Parkitect.x86_64"
insert_sudo () { zle beginning-of-line; zle -U "sudo " }
zle -N insert-sudo insert_sudo
bindkey "^[s" insert-sudo
bindkey "^?" backward-delete-char
alias eve="WINEARCH=win32 WINEPREFIX=~/Wine/eve32 wine ~/Wine/eve32/dosdevices/c:/EVE/Launcher/evelauncher.exe"
transfer() { if [ $# -eq 0 ]; then echo "No arguments specified. Usage:\necho transfer /tmp/test.md\ncat /tmp/test.md | transfer test.md"; return 1; fi
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; }; alias transfer=transfer