# HG changeset patch # User Dirk Olmes # Date 1585962918 -7200 # Node ID 75e3f2d8368ca9686b9fe2cdfef7ef6930dc791c # Parent 2ab4c6b8304423c478d435d33f6b7dd8d68a01ff move the ll and lr functions into the general zshrc diff -r 2ab4c6b83044 -r 75e3f2d8368c zshrc --- a/zshrc Sat Mar 28 02:34:26 2020 +0100 +++ b/zshrc Sat Apr 04 03:15:18 2020 +0200 @@ -31,13 +31,17 @@ # custom functions/aliases that should work on all platforms cd() { builtin cd "$@"; print -D $PWD; } ff() { find $2 -print0 | xargs -0 grep $1 } -alias gk="$HOME/.zsh-env/gk.sh" gve() { grep -ve '^#' $1 | uniq | less } hgrep() { history | grep $* } +ll() { /usr/bin/env -u LC_ALL LANG=C ls -laFh "$@" | more } +lr() { /usr/bin/env -u LC_ALL LANG=C ls -rtlh "$@" } mcd() { mkdir $1; cd $1 } psg() { ps auxww | grep -v grep | grep -i "$@" } + +alias gk="$HOME/.zsh-env/gk.sh" +alias history="history 1" +alias ny="nano -Y none" alias pd=pushd -alias history="history 1" alias removeKernel="$HOME/.zsh-env/removeKernel" alias sl='screen -ls' alias sn='screen -S' diff -r 2ab4c6b83044 -r 75e3f2d8368c zshrc-centos --- a/zshrc-centos Sat Mar 28 02:34:26 2020 +0100 +++ b/zshrc-centos Sat Apr 04 03:15:18 2020 +0200 @@ -3,5 +3,3 @@ # # custom functions for CentOS -ll() { /usr/bin/env -u LC_ALL LANG=C ls -laFh "$@" | more } -lr() { /usr/bin/env -u LC_ALL LANG=C ls -rtlh "$@" } diff -r 2ab4c6b83044 -r 75e3f2d8368c zshrc-gentoo --- a/zshrc-gentoo Sat Mar 28 02:34:26 2020 +0100 +++ b/zshrc-gentoo Sat Apr 04 03:15:18 2020 +0200 @@ -33,6 +33,3 @@ eval $CMD } kcs() { source $HOME/.keychain/${HOST}-sh } -ll() { /usr/bin/env -u LC_ALL LANG=C ls -laFh "$@" | more } -lr() { /usr/bin/env -u LC_ALL LANG=C ls -rtlh "$@" } -service() { /etc/init.d/"$@" }