Skip to content

leelsey/alias4sh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Alias4sh

Easily use shell through alias

Support enviroments

  • macOS
    • zsh
  • Linux
    • bash
    • zsh

Usage

1) Install Alias4sh

Copy and past on terminal

wget -c https://github.com/leelsey/Alias4sh/releases/download/v0.1/install.sh -O alias4sh.sh && sh alias4sh.sh && rm -f alias4sh.sh

2) Reload shell resource file

Zsh

source ~/.zshrc

Bash

source ~/.bashrc

3) Use alias command! You can check in Alias list.

Alias list

Common

Aliased cmd Original cmd
shrl exec $SHELL
his history
grep grep --color=auto
egrep egrep --color=auto
fgrep fgrep --color=auto
diff diff --color=auto
ls ls --color=auto
l ls -CF
ll ls -l
la ls -A
lla ls -al
lld ls -al --group-directories-first
lst ls -al
lr ls -lR
tree tree -Csu
dir dir --color=auto
dird dir -al --group-directories-first
vdir vdir --color=auto
cls clear
cdh cd ~
p cd ..
rm rm -i
cp cp -i
mv mv -i
f finger
j jobs -l
d date
c cal
dfh df -h
duh du -h
nvi nvim

For macOS

Aliased cmd Original cmd
ip ipconfig

For Linux

Aliased cmd Original cmd
ip addr ip addr --color

Zsh

Aliased cmd Original cmd
zshrl source ~/.zshrc
hisp history -p
hisc echo -n > ~/.zsh_history && history -p && exec $SHELL -l
hiscl rm -f ~/.bash_history && rm -f ~/.node_repl_history && rm -f ~/.python_history

Bash

Aliased cmd Original cmd
bashrl source ~/.bashrc
hisc history -c

Disabled

Aliased cmd Original cmd
mkdir mkdir -p
rmdir rmdir -p
curl curl -w '\n'

About

Easily use shell through alias

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages