This commit is contained in:
Blallo 2018-07-13 18:19:13 +02:00
parent c972102c8f
commit d285129e15
2 changed files with 39 additions and 32 deletions

10
.zprofile Normal file
View file

@ -0,0 +1,10 @@
alias t="tmux -2"
alias sy="systemctl"
alias ssy="sudo systemctl"
alias sl="cmatrix -b -s"
alias cd..="cmatrix -b -s -C yellow"
alias lt="ls -lt"
alias lh="ls -lh"
alias la="ls -la"
alias ll="ls -l"
alias lrt="ls -lrt"

61
.zshrc
View file

@ -63,30 +63,30 @@ export PATH=/home/leo/.gem/ruby/2.5.0/bin:$PATH
source /home/leo/.rvm/scripts/rvm source /home/leo/.rvm/scripts/rvm
export rvmsudo_secure_path=1 export rvmsudo_secure_path=1
## Taken from old .zshrc # ## Taken from old .zshrc
#
dl () { # dl () {
emulate -L zsh # emulate -L zsh
autoload -U colors # autoload -U colors
local color=$fg_bold[blue] # local color=$fg_bold[blue]
integer i=0 # integer i=0
dirs -p | while read dir # dirs -p | while read dir
do # do
local num="${$(printf "%-4d " $i)/ /.}" # local num="${$(printf "%-4d " $i)/ /.}"
printf " %s $color%s$reset_color\n" $num $dir # printf " %s $color%s$reset_color\n" $num $dir
(( i++ )) # (( i++ ))
done # done
integer dir=-1 # integer dir=-1
read -r 'dir?Jump to directory: ' || return # read -r 'dir?Jump to directory: ' || return
(( dir == -1 )) && return # (( dir == -1 )) && return
if (( dir < 0 || dir >= i )) # if (( dir < 0 || dir >= i ))
then # then
echo d: no such directory stack entry: $dir # echo d: no such directory stack entry: $dir
return 1 # return 1
fi # fi
cd ~$dir # cd ~$dir
} # }
#
# pcat # pcat
alias pcat='pygmentize -f terminal256 -O style=native -g' alias pcat='pygmentize -f terminal256 -O style=native -g'
@ -149,12 +149,12 @@ alias la="ls -la"
alias ll="ls -l" alias ll="ls -l"
alias lrt="ls -lrt" alias lrt="ls -lrt"
ZSH_CACHE_DIR=$HOME/.cache/oh-my-zsh #ZSH_CACHE_DIR=$HOME/.cache/oh-my-zsh
if [[ ! -d $ZSH_CACHE_DIR ]]; then #if [[ ! -d $ZSH_CACHE_DIR ]]; then
mkdir $ZSH_CACHE_DIR # mkdir $ZSH_CACHE_DIR
fi #fi
source $ZSH/oh-my-zsh.sh # source $ZSH/oh-my-zsh.sh
# Setup fzf # Setup fzf
# --------- # ---------
if [[ ! "$PATH" == */home/leo/Documents/coding/fzf/bin* ]]; then if [[ ! "$PATH" == */home/leo/Documents/coding/fzf/bin* ]]; then
@ -193,8 +193,5 @@ alias geocityiplookup="geoiplookup -f /usr/share/GeoIP/GeoLiteCity.dat"
alias mutt="neomutt" alias mutt="neomutt"
# antigen apply
antigen apply
# vim: et sw=2 ts=2 # vim: et sw=2 ts=2