Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

removed useless aliases and env

  • Loading branch information...
commit 5f93859d7026019a724069362718bcb4aecbf3e3 1 parent f37a413
@zentooo authored
Showing with 21 additions and 63 deletions.
  1. +21 −62 .zshalias
  2. +0 −1  .zshenv
View
83 .zshalias
@@ -2,16 +2,9 @@
## aliases for basic commands
-alias v="vim"
-alias g="gvim"
-
alias rr="rm -rf"
-alias rm="rm -i"
-
alias dh="df -h"
-
-alias pd="popd"
-alias gd='dirs -v; echo -n "select number: "; read newdir; cd +"$newdir"'
+md(){ mkdir -p $1; cd $1 }
alias tcz="tar cvzf"
alias txz="tar xvzf"
@@ -36,8 +29,6 @@ alias fall="sudo find / -name"
alias fhere="find ./ -name"
-## special aliases
-
# for source
alias zs="source ~/.zshrc"
@@ -47,34 +38,25 @@ alias zel="source ~/.zshenv.local"
alias za="source ~/.zshalias"
alias zal="source ~/.zshalias.local"
-# vcs aliases
+
+# vcs
alias sc="svn commit -m"
alias gc="git commit -a -m"
alias gg="git grep"
alias gp="git push origin master"
+
# tmux features
-new() { tmux new-window -a -n $1 }
+tn() { tmux new-session -s $1 }
+ta() { tmux attach-session -t $1 }
+tl() { tmux list-sessions }
cl() { tmux new-window -a -n $1; tmux send-keys -t:$1 "cd $1; clear" C-m }
sw() { tmux swap-window -s $1 -t $2 }
-alias key="sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys"
-
-alias cupmen3="sleep 180 && notify-send 'カップめんできたよ!'"
-alias cupmen5="sleep 300 && notify-send 'カップめんできたよ!'"
-
-alias awetest="Xephyr -ac -br -noreset -screen 800x600 :1 & sleep 1 && DISPLAY=:1.0 awesome -c ~/.config/awesome/rc.lua"
-
-md(){ mkdir -p $1; cd $1 }
-
-al(){ ack "$*" | less }
-
-gsh(){ RLWRAP_EDITOR='vim -c "set filetype=scheme"' rlwrap -c -q '"' -b "'"'(){}[].,#@;|`"' -m vim gosh }
-
-## perl aliases
+# for perl
sub() { perl -pi -e "s/$1/$2/g;" `find ./ -name "*.$3"` }
@@ -89,6 +71,16 @@ pmuse() { perl -MModule::ExtractUse -le 'my $p = Module::ExtractUse->new; my @us
http() { plackup -p $* -e 'use Plack::App::Directory; Plack::App::Directory->new( +{ root => "./" } )->to_app' }
+# others
+
+alias key="sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys"
+
+alias cupmen3="sleep 180 && notify-send 'カップめんできたよ!'"
+alias cupmen5="sleep 300 && notify-send 'カップめんできたよ!'"
+
+alias awetest="Xephyr -ac -br -noreset -screen 800x600 :1 & sleep 1 && DISPLAY=:1.0 awesome -c ~/.config/awesome/rc.lua"
+
+
## global aliases
alias -g ...='../..'
@@ -96,52 +88,19 @@ alias -g ....='../../..'
alias -g .....='../../../..'
alias -g W='| wc -l'
-
-alias -g D="DISPLAY=:0.0"
-
-alias -g ED="export DISPLAY=:0.0"
-
-alias -g EG='|& egrep'
-alias -g EH='|& head'
-alias -g EL='|& less -R'
-alias -g ELS='|& less -S -R'
-alias -g ETL='|& tail -20'
-alias -g ET='|& tail'
-alias -g F=' | fmt -'
alias -g G='| egrep'
-
alias -g H='| head'
-alias -g HL='|& head -20'
-
-alias -g NZ="*~(*.bz2|*.gz|*.tgz|*.zip|*.z)"
-
alias -g L="| less -R"
-alias -g LL="2>&1 | less -R"
-alias -g LS='| less -S -R'
-
-alias -g M='| more'
-alias -g MM='| most'
+alias -g X='| xargs'
alias -g N=/dev/null
alias -g NE="2> /dev/null"
alias -g NULL="> /dev/null 2>&1"
alias -g S='| sort'
-alias -g NS='| sort -n'
-alias -g US='| sort -u'
-alias -g NRS='| sort -nr'
-
-alias -g T='| tail'
-alias -g TL='| tail -20'
-
-alias -g VM=/var/log/messages
-
-alias -g X='| xargs'
-alias -g X0='| xargs -0'
-alias -g XG='| xargs egrep'
-alias -g X0G='| xargs -0 egrep'
+alias -g SN='| sort -n'
+alias -g SU='| sort -u'
-alias -g FA='find -P . -regex "\./[^.].*"'
if which pbcopy >/dev/null 2>&1 ; then
# Mac
View
1  .zshenv
@@ -1,7 +1,6 @@
export LANG=ja_JP.UTF-8
export EDITOR=vim
export MOZ_DISABLE_PANGO=1
-export PATH=$PATH:$HOME/bin:/opt/TweetDeck/bin:$HOME/.vim/bin
export GNOME_DESKTOP_SESSION_ID=1
# source local zshenv
Please sign in to comment.
Something went wrong with that request. Please try again.