bash   47763

« earlier    

bd
Quickly go back to a parent directory in linux instead of typing "cd ../../.." repeatedly. http://i.imgur.com/bbqd9DE.png
cli  linux  bash  vigneshwaranr  bd  cd 
17 hours ago by moalex
Bugsnag Blog - Tmux and Vim - even better together
"Recently, I wrote about a few benefits of using tmux. The benefits I discussed there are independent of one’s choice of text editor. But if you’re a vim user, the benefits of tmux reach even further. One of my favorite aspects of tmux is that it unlocks the potential for a more powerful vim-based development environment, allowing vim and the shell to feel more like a single cohesive tool."
bash  tmux  vim  tools  cli  coding 
21 hours ago by tobi_s
Centralized BASH history with timestamps | Unix Tutorial
Shortly after such a point in your life, you'll probably want to enhance your shell history in two very common ways:

1. Make sure every terminal window can update AND access your centralized shell history. So you run a command or two in one window, then type "history" anywhere else and see them two commands right there.
2. Provide meanigful timeline, this is done with timestamps. Very simple and powerful change helps you see exactly when each command occured.

Here's how you achieve both of these massive improvents to your history in BASH. Just add this to /etc/bashrc on your Linux system:

export HISTTIMEFORMAT="%d.%m.%y %T "
export HISTCONTROL=ignoredups:erasedupsshopt -s histappend
export PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND$'\n'}history -a; history -c; history -r;"
export HISTCONTROL=ignoreboth
bash  history 
yesterday by coffeebucket
Re: parted complain with negative number as argument for mkpart sub-comm
Pass -- after you are done with command line arguments so that it will
ignore anything else that looks like a - or -- arg. Like this:

parted -s -- /dev/sdb mkpart extended 2048M -1s
parted  argument  bash  shell  partition 
yesterday by coffeebucket
arpinum-oss/shebang-unit: Automated test framework for Bash
shebang-unit is an automated testing framework for Bash 4 based on xUnit.

With shebang-unit you can :

assert equality,
assert that string contains or not another string,
assert that array contains or not an element,
assert that status code is success or failure,
assert that command is successful or failing,
write setup or teardown functions for a test or a whole test file,
mock functions to speed up tests or enhance reliability,
view tests results with different kind of reports,
randomly execute tests to verify isolation,
save a baby kitten every time you use it!

Now you don't have any excuse for not practicing some sexy Test-Driven Development in Bash.
bash  scripting  testing 
3 days ago by dserodio

« earlier    

related tags

2011  2017  advanced  alias  aliases  apple  argument  audio  automation  backup  backupandrecovery  bash_scripting  bashrc  batch  bd  bestpractices  binary  boyobu  cd  cheat_sheet  cheatsheet  cli  code  coding  color  command-line  commandline  commands  conditional  crackme  curl  cygwin  databases  date  debug  dev  development  devops  differences  doc  documentation  example  explanation  fast  ffmpeg  file  files  filesystem  fish  forumthread  function  generator  git  github  golang  gps  groovy  history  howto  hulk-bash  important  installation  introduction  json  latitude  learning  linux  location  logging  longitude  mac  macos  macosx  manager  map  mapping  miliseconds  mintty  northsec  opt  osx  packagemanagement  parted  partition  performance  powershell  productivity  profile  programming  prompt  ps1  r  rao  reference  ruby  screen  script  scripting  scripts  search  shell-scripting  shell  shellscript  shiny  shortcut  shortcuts  snippet  snippets  software  solution  sql  stackexchange  statistics  sysadmin  syslog  terminal  ternary  testing  text  time  tips  tmux  todo  tool  tools  ubuntu  unix  utility  video  vigneshwaranr  vim  visualisation  visualization  web  windows  windows10  write-up  wsl  wsltty  youtube  zsh 

Copy this bookmark:



description:


tags: