This commit is contained in:
crater2150 2020-02-13 14:21:42 +01:00
parent 0660baa724
commit 714c14fc06
4 changed files with 16 additions and 4 deletions

View file

@ -4,8 +4,8 @@
# daily use aliases
##############################################################################{{{
alias ls="ls -N --color=auto"
alias ll="ls -hl --group-directories-first"
alias ls="ls --group-directories-first -N --color=auto"
alias ll="ls -hl"
alias lll="ls -hla"
alias ds="du -sh"
alias :q="exit"
@ -260,6 +260,7 @@ svn() {
}
alias gitv='vim "$(git rev-parse --git-dir)/index" -c "Gitv --all" -c tabonly'
alias ipy=ipython3
#}}}

View file

@ -5,6 +5,7 @@ fpath=( "${ZDOTDIR:+$ZDOTDIR/compdef}" "/etc/zsh/compdef" $fpath )
[[ -n $(echo $ZDOTDIR/compdef/*(N:t)) ]] && autoload -U $ZDOTDIR/compdef/*(N:t)
autoload -Uz compinit && compinit -u
autoload -U +X bashcompinit && bashcompinit
zstyle ':completion:*:descriptions' format %B%d%b
zstyle ':completion:*:messages' format %d
@ -29,7 +30,7 @@ zstyle :compinstall filename '/etc/zsh/completion'
# completion for programs with standard gnu --help
for prog in amm tapestry virtualenv; do
for prog in amm tapestry virtualenv dragon; do
compdef _gnu_generic $prog
done

2
env/50_rust.zsh vendored
View file

@ -1,3 +1,3 @@
if which rustup &>/dev/null; then
if which rustup &>/dev/null && [[ -n $(rustup show active-toolchain) ]]; then
export RUST_SRC_PATH=$(rustup run stable rustc --print sysroot)/lib/rustlib/src/rust/src
fi

10
zshrc
View file

@ -16,6 +16,8 @@ setopt cdable_vars
export ZDOTDIR=${ZDOTDIR:-$HOME/.zsh}
function exists { command -v "$@" >/dev/null }
# get a file from ZDOTDIR, return file in /etc/zsh if it does not exist
zdotfile() {
if [[ -e $ZDOTDIR/$1 ]]; then
@ -53,3 +55,11 @@ if ! (grep -q 'local' <<<$PATH && grep -q 'sbin' <<<$PATH); then
fi
FZF_ALT_C_COMMAND="fd -t d"
[[ -e /usr/share/doc/fzf/key-bindings.zsh ]] && . /usr/share/doc/fzf/key-bindings.zsh
if exists stack; then
eval "$(stack --bash-completion-script stack)"
fi
exists todo && todo
eval $(thefuck --alias)