changeset 168:75e3f2d8368c

move the ll and lr functions into the general zshrc
author Dirk Olmes <dirk.olmes@codedo.de>
date Sat, 04 Apr 2020 03:15:18 +0200
parents 2ab4c6b83044
children 2cc8820caae0
files zshrc zshrc-centos zshrc-gentoo
diffstat 3 files changed, 6 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- 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'
--- 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 "$@" }
--- 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/"$@" }