Migrate to rcm
This commit is contained in:
50
zshrc.d/aliases.zsh
Normal file
50
zshrc.d/aliases.zsh
Normal file
@@ -0,0 +1,50 @@
|
||||
# aliases
|
||||
alias sdr="screen -aAdr"
|
||||
alias la="ls -A"
|
||||
alias ll="ls -lAF"
|
||||
alias mkpasswd="head -c16 /dev/urandom | xxd -ps"
|
||||
alias mc="mc -b"
|
||||
alias ls='ls --color=auto'
|
||||
alias cdp='cd $($HOME/bin/cdp)'
|
||||
# alias less='vimpager'
|
||||
|
||||
if [ -f /usr/bin/grc ]; then
|
||||
alias ping="grc --colour=auto ping"
|
||||
alias traceroute="grc --colour=auto traceroute"
|
||||
alias make="grc --colour=auto make"
|
||||
alias diff="grc --colour=auto diff"
|
||||
alias cvs="grc --colour=auto cvs"
|
||||
alias netstat="grc --colour=auto netstat"
|
||||
alias mount="grc --colour=auto mount"
|
||||
alias ifconfig="grc --colour=auto ifconfig"
|
||||
alias dig="grc --colour=auto dig"
|
||||
alias ps="grc --colour=auto ps"
|
||||
fi
|
||||
|
||||
# bundler aliases
|
||||
alias rails="bundle exec rails"
|
||||
alias hanami="bundle exec hanami"
|
||||
alias rake="bundle exec rake"
|
||||
alias rspec="bundle exec rspec"
|
||||
alias foreman="bundle exec foreman"
|
||||
alias sidekiq="bundle exec sidekiq"
|
||||
alias cap="bundle exec cap"
|
||||
alias mina="bundle exec mina"
|
||||
|
||||
alias rgrep="grep --exclude-dir=Godeps --exclude-dir=node_modules --exclude-dir=log --exclude-dir=vendor --exclude-dir=tmp --exclude-dir=public --exclude-dir=.git --exclude=.swp -rn"
|
||||
alias grep="grep --exclude-dir=.git --color=auto"
|
||||
|
||||
alias weather="curl wttr.in/Moscow"
|
||||
alias ag="ag --path-to-ignore $HOME/.agignore --nogroup"
|
||||
alias vim="nvim"
|
||||
|
||||
# Typos
|
||||
alias igt="git"
|
||||
alias gti="git"
|
||||
alias gitst="git st"
|
||||
|
||||
# Ledger
|
||||
alias ledger="noglob ledger"
|
||||
alias "bin/ledger"="noglob bin/ledger"
|
||||
|
||||
alias icat="kitty +kitten icat"
|
||||
4
zshrc.d/env.zsh
Normal file
4
zshrc.d/env.zsh
Normal file
@@ -0,0 +1,4 @@
|
||||
export TIMELOG=$HOME/.work-ledger/ledger/timelogger.ldg
|
||||
export TERMINAL=xst
|
||||
export XTERM=xst
|
||||
export EDITOR=nvim
|
||||
1
zshrc.d/locale.zsh
Normal file
1
zshrc.d/locale.zsh
Normal file
@@ -0,0 +1 @@
|
||||
export LANGUAGE=en_US:en_GB:en
|
||||
0
zshrc.d/paths.zsh
Normal file
0
zshrc.d/paths.zsh
Normal file
6
zshrc.d/rbenv.zsh
Normal file
6
zshrc.d/rbenv.zsh
Normal file
@@ -0,0 +1,6 @@
|
||||
if [ -d $HOME/.rbenv/bin ] ; then
|
||||
unset RUBYOPT
|
||||
PATH=$HOME/.rbenv/bin:$PATH
|
||||
eval "$(rbenv init -)"
|
||||
source $HOME/.rbenv/completions/rbenv.zsh
|
||||
fi
|
||||
3
zshrc.d/rust.zsh
Normal file
3
zshrc.d/rust.zsh
Normal file
@@ -0,0 +1,3 @@
|
||||
if [ -d $HOME/.cargo/bin ] ; then
|
||||
PATH=$HOME/.cargo/bin:$PATH
|
||||
fi
|
||||
11
zshrc.d/ssh-agent.zsh
Normal file
11
zshrc.d/ssh-agent.zsh
Normal file
@@ -0,0 +1,11 @@
|
||||
ssh-add -l > /dev/null 2>&1
|
||||
if [ "$?" == 2 ]; then
|
||||
test -r $HOME/.ssh-agent && eval "$(<$HOME/.ssh-agent)" > /dev/null 2>&1
|
||||
|
||||
ssh-add -l > /dev/null 2>&1
|
||||
if [ "$?" == 2 ]; then
|
||||
(umask 066; ssh-agent >| $HOME/.ssh-agent)
|
||||
eval "$(<$HOME/.ssh-agent)" > /dev/null
|
||||
ssh-add
|
||||
fi
|
||||
fi
|
||||
Reference in New Issue
Block a user