zshrc.d added
This commit is contained in:
parent
57d7713094
commit
a11005f07a
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,3 +1,6 @@
|
||||
# zshrc.d
|
||||
zshrc.d/*.zsh
|
||||
|
||||
# ---> Linux
|
||||
*~
|
||||
|
||||
|
13
zshrc
13
zshrc
@ -256,14 +256,11 @@ if [ -f /usr/share/zsh-autosuggestions/zsh-autosuggestions.zsh ]; then
|
||||
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=#999'
|
||||
fi
|
||||
|
||||
if [ ! `which powerline-daemon` == "" ]; then
|
||||
powerline-daemon -q
|
||||
. /usr/share/powerline/bindings/zsh/powerline.zsh
|
||||
fi
|
||||
|
||||
if [ ! `which neofetch` == "" ]; then
|
||||
neofetch
|
||||
fi
|
||||
# You may want to put all your additions into a folder file like
|
||||
# ~/.config_files/zshrc.d, instead of adding them here directly.
|
||||
for file in ~/.config_files/zshrc.d/*.zsh; do
|
||||
source "$file"
|
||||
done
|
||||
|
||||
# enable command-not-found if installed
|
||||
if [ -f /etc/zsh_command_not_found ]; then
|
||||
|
17
zshrc.d/__available__/aliases.zsh
Normal file
17
zshrc.d/__available__/aliases.zsh
Normal file
@ -0,0 +1,17 @@
|
||||
# enable color support of ls and also add handy aliases
|
||||
if [ -x /usr/bin/dircolors ]; then
|
||||
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
|
||||
alias ls='ls --color=auto'
|
||||
alias dir='dir -lh --color=auto'
|
||||
#alias vdir='vdir --color=auto'
|
||||
|
||||
alias grep='grep --color=auto'
|
||||
alias fgrep='fgrep --color=auto'
|
||||
alias egrep='egrep --color=auto'
|
||||
fi
|
||||
|
||||
# some more ls aliases
|
||||
alias ll='ls -alF'
|
||||
alias la='ls -A'
|
||||
alias l='ls -CF'
|
||||
alias less='less -iS'
|
4
zshrc.d/__available__/aliases_extended.zsh
Normal file
4
zshrc.d/__available__/aliases_extended.zsh
Normal file
@ -0,0 +1,4 @@
|
||||
# some more ls aliases
|
||||
alias dd='dd status=progress'
|
||||
alias dd_status="watch -n5 'sudo kill -USR1 $(pgrep ^dd)'"
|
||||
alias ssh='ssh -X'
|
4
zshrc.d/__available__/bin.zsh
Normal file
4
zshrc.d/__available__/bin.zsh
Normal file
@ -0,0 +1,4 @@
|
||||
# set PATH so it includes user's private bin if it exists
|
||||
if [ -d "$HOME/bin" ] ; then
|
||||
PATH="$HOME/bin:$PATH"
|
||||
fi
|
3
zshrc.d/__available__/neofetch.zsh
Normal file
3
zshrc.d/__available__/neofetch.zsh
Normal file
@ -0,0 +1,3 @@
|
||||
if [ ! `which neofetch` == "" ]; then
|
||||
neofetch
|
||||
fi
|
4
zshrc.d/__available__/powerline.zsh
Normal file
4
zshrc.d/__available__/powerline.zsh
Normal file
@ -0,0 +1,4 @@
|
||||
if [ ! `which powerline-daemon` == "" ]; then
|
||||
powerline-daemon -q
|
||||
. /usr/share/powerline/bindings/zsh/powerline.zsh
|
||||
fi
|
Loading…
x
Reference in New Issue
Block a user