Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
rcfiles
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nimrod
rcfiles
Commits
dd6ae545
Commit
dd6ae545
authored
10 months ago
by
nimrod
Browse files
Options
Downloads
Patches
Plain Diff
Small printf aliases cleanup.
parent
330b111f
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.bashrc
+0
-9
0 additions, 9 deletions
.bashrc
.bashrc.d/_printf
+11
-0
11 additions, 0 deletions
.bashrc.d/_printf
with
11 additions
and
9 deletions
.bashrc
+
0
−
9
View file @
dd6ae545
...
@@ -84,10 +84,7 @@ alias all-repos='find "$HOME/Repositories" -maxdepth 3 -type d -name .git -print
...
@@ -84,10 +84,7 @@ alias all-repos='find "$HOME/Repositories" -maxdepth 3 -type d -name .git -print
alias
ansible-local-playbook
=
'ansible-playbook -i localhost, -c local -e "ansible_python_interpreter=$(which python3)"'
alias
ansible-local-playbook
=
'ansible-playbook -i localhost, -c local -e "ansible_python_interpreter=$(which python3)"'
alias
ansible-local
=
'ansible localhost -c local -i localhost, -e "ansible_python_interpreter=$(which python3)"'
alias
ansible-local
=
'ansible localhost -c local -i localhost, -e "ansible_python_interpreter=$(which python3)"'
alias
aptitude
=
'aptitude --display-format %p --quiet'
alias
aptitude
=
'aptitude --display-format %p --quiet'
alias
bell
=
"printf '
\\
a'"
alias
black
=
'black --line-length 79'
alias
black
=
'black --line-length 79'
alias
blue
=
"printf '
\e
[1;94m%s
\e
[0m
\n
'"
alias
bold
=
"printf '
\e
[1m%s
\e
[0m
\n
'"
alias
cadvisor
=
'docker run --rm --volume=/:/rootfs:ro --volume=/var/run:/var/run:rw --volume=/sys:/sys:ro --volume=/var/lib/docker/:/var/lib/docker:ro --volume=/dev/disk/:/dev/disk:ro --publish=8080:8080 --detach=true --name=cadvisor google/cadvisor:latest'
alias
cadvisor
=
'docker run --rm --volume=/:/rootfs:ro --volume=/var/run:/var/run:rw --volume=/sys:/sys:ro --volume=/var/lib/docker/:/var/lib/docker:ro --volume=/dev/disk/:/dev/disk:ro --publish=8080:8080 --detach=true --name=cadvisor google/cadvisor:latest'
alias
cdtemp
=
'cd "$(mktemp -d)"'
alias
cdtemp
=
'cd "$(mktemp -d)"'
alias
check_tcp
=
'nc -vzw10'
alias
check_tcp
=
'nc -vzw10'
...
@@ -97,7 +94,6 @@ alias close='ssh -fnNTS ~/.ssh/%C.sock -O exit'
...
@@ -97,7 +94,6 @@ alias close='ssh -fnNTS ~/.ssh/%C.sock -O exit'
alias
color
=
'less --raw-control-chars -p'
alias
color
=
'less --raw-control-chars -p'
alias
concat
=
"perl -pe 's/
\\
n/
\\\\
n/g'"
alias
concat
=
"perl -pe 's/
\\
n/
\\\\
n/g'"
alias
cphere
=
'cp --target-directory=./'
alias
cphere
=
'cp --target-directory=./'
alias
cyan
=
"printf '
\e
[1;96m%s
\e
[0m
\n
'"
alias dd
=
'dd status=progress'
alias dd
=
'dd status=progress'
alias
deborphan
=
'deborphan -a --no-show-section --ignore-suggests'
alias
deborphan
=
'deborphan -a --no-show-section --ignore-suggests'
alias
deconcat
=
"perl -pe 's/
\\\\
n/
\\
n/g'"
alias
deconcat
=
"perl -pe 's/
\\\\
n/
\\
n/g'"
...
@@ -107,10 +103,8 @@ alias detectproxy='w3m http://detectportal.firefox.com/success.txt'
...
@@ -107,10 +103,8 @@ alias detectproxy='w3m http://detectportal.firefox.com/success.txt'
alias df
=
'df --output=source,fstype,size,used,avail,pcent,iavail,ipcent,target'
alias df
=
'df --output=source,fstype,size,used,avail,pcent,iavail,ipcent,target'
alias
diff
=
'diff --unified'
alias
diff
=
'diff --unified'
alias
dpkglog
=
"grep -v 'status
\\
|trigproc
\\
|configure' /var/log/dpkg.log"
alias
dpkglog
=
"grep -v 'status
\\
|trigproc
\\
|configure' /var/log/dpkg.log"
alias
escape
=
'printf "%q"'
alias
gen-mac
=
'hexdump -n5 -e '
\'
'"02" 5/1 ":%02X" "\n"'
\'
' /dev/urandom'
alias
gen-mac
=
'hexdump -n5 -e '
\'
'"02" 5/1 ":%02X" "\n"'
\'
' /dev/urandom'
alias
gen-ssh-config
=
"rc_make .ssh/config"
alias
gen-ssh-config
=
"rc_make .ssh/config"
alias
green
=
"printf '
\e
[1;92m%s
\e
[0m
\n
'"
alias
hcl2json
=
'json2hcl -reverse'
alias
hcl2json
=
'json2hcl -reverse'
alias
hostlocal
=
'docker run --rm --privileged --net=host docker.io/gliderlabs/hostlocal'
alias
hostlocal
=
'docker run --rm --privileged --net=host docker.io/gliderlabs/hostlocal'
alias
jjb
=
'jenkins-jobs'
alias
jjb
=
'jenkins-jobs'
...
@@ -122,7 +116,6 @@ alias listen_udp='nc -uvlk 0.0.0.0'
...
@@ -122,7 +116,6 @@ alias listen_udp='nc -uvlk 0.0.0.0'
alias
listen_unix
=
'nc -Uvlk'
alias
listen_unix
=
'nc -Uvlk'
alias
ll
=
'ls -lha'
alias
ll
=
'ls -lha'
alias
lsblk
=
'lsblk --output=NAME,RM,RO,SIZE,TYPE,FSTYPE,LABEL,UUID,MODEL,TRAN,MOUNTPOINT'
alias
lsblk
=
'lsblk --output=NAME,RM,RO,SIZE,TYPE,FSTYPE,LABEL,UUID,MODEL,TRAN,MOUNTPOINT'
alias
magenta
=
"printf '
\e
[1;95m%s
\e
[0m
\n
'"
alias
missing-recommends
=
"aptitude search '~RBrecommends:~i'"
alias
missing-recommends
=
"aptitude search '~RBrecommends:~i'"
alias
missing-suggests
=
"aptitude search '~RBsuggests:~i'"
alias
missing-suggests
=
"aptitude search '~RBsuggests:~i'"
alias
monitor
=
"monitor "
alias
monitor
=
"monitor "
...
@@ -157,7 +150,6 @@ alias pre-commit-update-skel='pre-commit autoupdate --config ~/.config/git/skel/
...
@@ -157,7 +150,6 @@ alias pre-commit-update-skel='pre-commit autoupdate --config ~/.config/git/skel/
# shellcheck disable=SC2139
# shellcheck disable=SC2139
alias
rc_make
=
"make --directory
$HOME
--always-make"
alias
rc_make
=
"make --directory
$HOME
--always-make"
alias
rc_update
=
"rc_make vendored generated"
alias
rc_update
=
"rc_make vendored generated"
alias
red
=
"printf '
\e
[1;91m%s
\e
[0m
\n
'"
alias
reg
=
'ssh ns4.shore.co.il docker exec registry_reg_1 reg'
alias
reg
=
'ssh ns4.shore.co.il docker exec registry_reg_1 reg'
alias
restart-kodi
=
'ssh kodi.shore.co.il "sudo systemctl kill --kill-who=all --signal=9 xorg.service"'
alias
restart-kodi
=
'ssh kodi.shore.co.il "sudo systemctl kill --kill-who=all --signal=9 xorg.service"'
# shellcheck disable=SC2032
# shellcheck disable=SC2032
...
@@ -181,7 +173,6 @@ alias utcnow='date --utc --iso-8601=seconds'
...
@@ -181,7 +173,6 @@ alias utcnow='date --utc --iso-8601=seconds'
# shellcheck disable=SC2139
# shellcheck disable=SC2139
alias
wbr
=
"ssh -t ns4.shore.co.il
$(
command
-v
wb
)
"
alias
wbr
=
"ssh -t ns4.shore.co.il
$(
command
-v
wb
)
"
alias
wifi-portal
=
'curl --silent --fail --write-out "%{redirect_url}" --output /dev/null http://detectportal.firefox.com/success.txt'
alias
wifi-portal
=
'curl --silent --fail --write-out "%{redirect_url}" --output /dev/null http://detectportal.firefox.com/success.txt'
alias
yellow
=
"printf '
\e
[1;93m%s
\e
[0m
\n
'"
alias
xargs
=
"xargs "
alias
xargs
=
"xargs "
ansible_all
()
{
ansible_all
()
{
...
...
This diff is collapsed.
Click to expand it.
.bashrc.d/_printf
0 → 100644
+
11
−
0
View file @
dd6ae545
# vim: ft=bash
alias
bell
=
"printf '
\\
a'"
alias
blue
=
"printf '
\e
[1;94m%s
\e
[0m
\n
'"
alias
bold
=
"printf '
\e
[1m%s
\e
[0m
\n
'"
alias
cyan
=
"printf '
\e
[1;96m%s
\e
[0m
\n
'"
alias
escape
=
'printf "%q"'
alias
green
=
"printf '
\e
[1;92m%s
\e
[0m
\n
'"
alias
magenta
=
"printf '
\e
[1;95m%s
\e
[0m
\n
'"
alias
red
=
"printf '
\e
[1;91m%s
\e
[0m
\n
'"
alias
yellow
=
"printf '
\e
[1;93m%s
\e
[0m
\n
'"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment