zshrc.d added

This commit is contained in:
Dirk Alders 2023-04-20 08:59:51 +02:00
parent 57d7713094
commit a11005f07a
7 changed files with 40 additions and 8 deletions

3
.gitignore vendored
View File

@ -1,3 +1,6 @@
# zshrc.d
zshrc.d/*.zsh
# ---> Linux
*~

13
zshrc
View File

@ -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

View 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'

View 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'

View 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

View File

@ -0,0 +1,3 @@
if [ ! `which neofetch` == "" ]; then
neofetch
fi

View File

@ -0,0 +1,4 @@
if [ ! `which powerline-daemon` == "" ]; then
powerline-daemon -q
. /usr/share/powerline/bindings/zsh/powerline.zsh
fi